barteloma
barteloma

Reputation: 6855

WebStorm does not recognize my custom Angular.js directives

I am creating custom Angular.js directives but WebStorm 2017.1.2 does not recognize them:

enter image description here

My WebStorm JavaScript library settings are like this:

enter image description here

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

Answers (1)

lena
lena

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

Related Questions