Friday, January 10, 2014

ng-app versus np-app="somethingInParticular"

...the later suggests a namespace. Only those controllers, directives, filters, services, etc. in the somethingInParticular definition will be accessible and if there is not such a definition that app will blow up. This sort of namespacing allows for cleanness when running two separate AngularJS applications at the same HTML page.

No comments:

Post a Comment