Nathan
Nathan

Reputation: 7855

Are the square brackets in angular still required?

I know they're used for keeping track of minified variables, but I've noticed a lot of examples that exclude them.

I'm not a big fan of all that boilerplate, so if they are required, what are some clean ways to use them -- without some big long line of strings.

Upvotes: 0

Views: 99

Answers (1)

Peter Ashwell
Peter Ashwell

Reputation: 4302

No they aren't at all. You can use ng-annotate you insert them for you pre-minification.

https://github.com/olov/ng-annotate

https://www.npmjs.com/package/grunt-ng-annotate

Upvotes: 1

Related Questions