Hi Kasper,

The array notation is to make sure the injector works, even when your code 
is minified. There are a couple of other ways to reach the same goal. You 
can look those up if you want. 
If you are only concatenating your code, and not minifying/uglyfying, you 
don't really need those, but I think it's a good idea to have them around 
anyway. 

The good news is, you don't (and it even recommend against) have to do it 
by hand.
If you are going to minify, you are using a tools for that. When you are 
using tools, it's quite easy to add an tool that takes care of this 
automatically.  ng-annotate <https://github.com/olov/ng-annotate> is the 
most used one.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to