Reputation: 6855
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?
Upvotes: 0
Views: 376
Reputation: 93748
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
Upvotes: 1