angular.module('App', []);
In this square brackets I have to put names of other modules that are required to use in that App. That modules are injected by name.
angular.module('App', ['MyValidators','MyFilters']);
I exclude html templates to external files and use them by url.
<div .... ng-include="'templates/myTemplate.tpl.html'" />
No comments:
Post a Comment