Declaring 2 App In Angular Doesn't Work
I am trying to have 2 angular modules in the same HTML file. I am implementing an SPA and the second app is intended to be used for 1 partial HTML. Since the second one is under th
Solution 1:
Follow this reference here for angular.bootstrap
Your code should look like:
angular.bootstrap(document, ['meetupApp']);
Usage:
angular.bootstrap(element, [modules], [config]);
Here in your case the [modules] is 'meetupsController' and not the var 'app2'.
Post a Comment for "Declaring 2 App In Angular Doesn't Work"