4 ms·
Personally with AngularJS I tend to embed multiple views with <script type='text/ng-template' id='hackernews.html'> </script> And you can call one view with y
by conradfr 12y ago
Personally with AngularJS I tend to embed multiple views with
<script type='text/ng-template' id='hackernews.html'>
</script>
And you can call one view with your usual "templateUrl: 'hackernews.html'"
Especially if I have many directives with more than a few lines of html. That way you can embed them in your main html or in a separate cacheable file.