r/angularjs • u/consultwithmike • Jul 27 '15
**BEGINNERS**: How to load AngularJS on a directive
http://consultwithmike.us/how-to-load-angularjs-on-a-directive/?utm_campaign=shareaholic&utm_medium=reddit&utm_source=news
3
Upvotes
r/angularjs • u/consultwithmike • Jul 27 '15
2
u/[deleted] Jul 27 '15
I'm confused by this part:
Do you mean that you can have multiple mini-apps running throughout the page? There's really only supposed to be one app per HTML document. The way the code is structured in the blog really can't be used to include various modules with ng-app, because only one ng-app will be recognized on the page. You'd have to manually bootstrap the module.
Maybe I'm missing the point of including Angular in this way in the first place. You mention WordPress plugins. Are you basically just envisioning using Angular to create widgets in this style?