InterviewSolution
Saved Bookmarks
| 1. |
Is it possible to have multiple ng-app directives on a single page? |
|
Answer» No. You can auto-bootstrapped only one AngularJS application per HTML document. HOWEVER, the first ngApp found will be used by default to define the root ELEMENT to auto-bootstrap. Yet, if another ng-APP directive gets placed, then it will not be PROCESSED by AngularJS. In this case, you should manually bootstrap the second app instead of using the second ng-app directive. |
|