Complaining about angular functions

 Am getting a notification for missing import statement -- see angular.forEach line 

This works on other projects so not sure what I could be missing.



3 comments
Comment actions Permalink

Please try to run File > Invalidate Caches/Restart > Invalidate and Restart.

0
Comment actions Permalink

No dice. Angular is autocompleting and recognzing everything in html files. It's recognizing things like scope.$watch. Maybe it's just something weird with angular.forEach.

0
Comment actions Permalink

Do you have this error reported for 'angular', for 'forEach', or for both? Is 'angular' imported in current file (via angular = require('angular'), etc.)? From the code snippet it seems that you define your Angular directive as CommonJS module - in such cases PhpStorm expects referenced modules to be imported explicitly

0

Please sign in to leave a comment.