WebStorm 11 auto-complete angular JS

In my html file, inside the html tag, when I type ng expecting to see a list of angular attributes like ng-app for the ngApp directive, I find them not, "1st image".
I have Angular JS plugin installed "2nd image".

Then I thought I needed more things installed, so I added angularjs-DefinitelyTyped "3rd image", but for no avail.

How can I get webStorm to give the attributes for angular directives to show up? Thanks





1 comment
Comment actions Permalink

Most probably, the problem is that AngularJS support is not enabled for your project. Do you have angular.js file (debug version, uncompressed) in your project? Normally it's enough to get the types recognition, tags completion, etc. working. See http://blog.jetbrains.com/webstorm/2014/03/angularjs-workflow-in-webstorm/, 'Include angular.js in Your Project' section. See also http://blog.jetbrains.com/webstorm/2014/07/how-webstorm-works-completion-for-javascript-libraries/

Note that adding Angular typescript stubs instead won't work, you need angular.js file

0

Please sign in to leave a comment.