cgross / generator-cg-angular

Yeoman generator for Enterprise Angular projects.
MIT License
592 stars 198 forks source link

'ng-strict-di' strict mode is good feature to have in angular 1.3 #79

Closed tapas4java closed 10 years ago

tapas4java commented 10 years ago

Any plan for enabling 'ng-strict-di' strict mode?

cgross commented 10 years ago

The generator uses ng-annotate to add the annotations automatically. So if we added ng-strict-di to the development time index.html, it would always complain that there are no DI annotations. I guess we could add it to the dist index.html but it only be checking that ng-annotate worked correctly. Not sure I see the benefit.

tapas4java commented 10 years ago

Ng-Annotate has a plan in their roadmap to add this tag automatically in future. We can ignore it for now.