AngularJS: Not Working on Plunker
Plunker is my goto cloud based IDE for quick setup and demo purposes. It's all about what you prefer really and there a tons of choices out there. This is two common problems that I faced but haven't since I'm aware of them, they're not really a problem anymore. I just wanted to keep notes on this incase I forget in the future.
First: "The plunker has
Resource: Why this angularjs example doesn't work on plunker?
Second: "use angular.bootstrap($('#your_div_loaded_in_ajax'), "myApp","other_module"]);"
Resource: AngularJs ReferenceError: angular is not defined
Notes
Also for the angular file don't use async or defer. This always goes without saying your custom script should come after the angular file even if its in the index.html file itself; just for good measure.
Plunker |
First: "The plunker has
ng-app
instead of ng-app='directive'
in the index.html"Resource: Why this angularjs example doesn't work on plunker?
Second: "use angular.bootstrap($('#your_div_loaded_in_ajax'), "myApp","other_module"]);"
Resource: AngularJs ReferenceError: angular is not defined
Notes
Also for the angular file don't use async or defer. This always goes without saying your custom script should come after the angular file even if its in the index.html file itself; just for good measure.