Reputation: 709
I am trying to code the below sample program in Angular js using Sublime Text. I have already included the angular package in Preferences. The code doesnn't work when I give the src for angular as src="angular.min.js", where as it works I give the src as src="https://code.angularjs.org/1.4.0/angular.js". How do I link the src correctly on my computer?
Upvotes: 0
Views: 842
Reputation: 222682
Just download the reference that you use and save it as angular.min.js on the same folder where your app is.
Also no need to have multiple ng-app mentioned in the div.
If you are having a separate controller defined, it is necessary to define the ng-app with the module name and mention the controller in the view.
Upvotes: 1