I am creating custom Angular.js directives but WebStorm 2017.1.2 does not recognize them:
My WebStorm JavaScript library settings are like this:
And Angular.js plugins are installed.
I notice now a situation about this problem. If I create a new project and new directives, WebStorm recognizes custom directives. But I am working on a large project and custom directives are not recognized there.
Is there special case for directives?
Do you have angular.js
file (debug version, uncompressed!) in your project? Normally it's enough to get Angular directives/methods recognized. See http://blog.jetbrains.com/webstorm/2014/03/angularjs-workflow-in-webstorm/ , ' Include angular.js in Your Project ' section
Note that angular typescript stubs ( angular-Definitely typed
, etc.) won't work here, you need angular.js
to enable AngularJS support
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.