NOTE: This is a WebStorm issue, not an angular.js issue.
Screencast of the problem: http://f.cl.ly/items/302s0d1k1i3i1B2p0W09/ws703-angular-not-defined.mp4
Descr
In
Webstorm settings > JavaScript > Code Quality Tools > JSHint
there is "Predefined" line. Click on "Set" next to it. Here you can add all your predefined variables.