Angular Custom Directive Completion

Is it possible to get auto-completion for custom AngularJS directives? I have AngularJS support enabled in Webstorm 2016.2 and get completion for the base directives and ng-attributes, but none of my custom tags are identified ( I get 'unknown html tag <my custom tag>' ).

The directives are defined in an external library which I have added in settings.

 

Thanks,

Andrew.

3 comments
Comment actions Permalink

Completion should work for custom Angular directives if the Angular support is correctly enabled (you need to make sure to include a debug (non-compressed) version of angular.js library in the project). Not sure about directives defined in external libraries... what do these libraries look like?

0
Comment actions Permalink

Ah, I have it. I resolved the issue by adding the parent folder of the library to the project ( In Settings->Directories ) and marking it as a resource root.

 

Thanks,

Andrew.

1
Comment actions Permalink

Thanks, I had done the same (excluded node_modules) and couldn't figure out why I was getting these errors

0

Please sign in to leave a comment.