Ranjith King
Ranjith King

Reputation: 709

How to add reference to a script file in sublime text to code in angular js?

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?

enter image description here

Upvotes: 0

Views: 842

Answers (2)

Sajeetharan
Sajeetharan

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

medo medo
medo medo

Reputation: 60

Try running Sublime Text as Administrator.

Upvotes: 0

Related Questions