3 ms·
Yeah, that's pretty much what it does[0]. Most templates will typically live in separate files and be loaded and compiled when needed, of course - so not so mu
by tragic 12y ago
Yeah, that's pretty much what it does[0].
Most templates will typically live in separate files and be loaded and compiled when needed, of course - so not so much of a performance hit up front. But Angular still needs to know where to dump the stuff, so it needs to parse the DOM to find a node with the ng-app directive.
Also, I'm not aware of anything like handlebars's offline pre-compilation for Angular, although such a thing may well exist. There's a lot of stuff in there...
[0] https://docs.angularjs.org/guide/bootstrap https://docs.angularjs.org/guide/bootstrap