0

I am new to Angularjs and web development.

I used Webstorm to develop it and installed angularjs plugin already. It seems work in html file, but it doesn't work in .js file. I have a very simple statement:

var myApp = angular.module('myApp', []);

In webstorm, it can't detect the keyword 'angular'.

Anyone knows what steps I am missing? Thanks

1

1 Answer 1

2

Do you mean that the 'angular' is resolved in javascript embedded in HTML, but not in js files? Have you set up the angular js javascript library in any way? Seems that the library is either missing or configured in the HTML file scope only (the latter usually happens when using 'download library' intention in HTML file). To get the angular stuff resolved, you have to download the angular.js from http://code.angularjs.org and either copy it to your project directory or configure as a javascript library in Settings/javaScript/Libraries

Sign up to request clarification or add additional context in comments.

1 Comment

For people like me who can't find things... jetbrains.com/idea/help/configuring-javascript-libraries.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.