You can choose the method that you want, since it is SPA => loaded once, so there is no poor performance if in your head.
If you declare angular.jsat the bottom of the page, there is a good way to avoid this case for a missing interpolated variable:
you should use the directive ng-bindin your home template instead of indicating direct interpolation:
<div ng-bind="model.value"></div>
instead {{model.value}}
source
share