News for hackers. Stuff that matters.
Re:Synth – A Node.js web framework designed for AngularJS by conradfr on Thursday June 12, 2014 @03:43PM (#7885568)
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.

There are no comments on this comment yet.