I\'m reading http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html and it turned out that angularjs dependency injection has problem
It is safer to use the second variant but it is also possible to use the first variant safely with ngmin.
UPDATE: Now ng-annotate becomes a new default tool to solve this issue.