Skip to content

Commit f11da1c

Browse files
committed
README: describe ng-strict-di, see angular/angular.js#8117
1 parent 9ca5c0f commit f11da1c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ Use the `--plugin` option to load a user plugin with the provided path (*experim
5757
Use the `--stats` option to print statistics on stderr (*experimental*).
5858

5959

60+
## Highly recommended: enable ng-strict-di in your minified builds
61+
`<div ng-app="myApp" ng-strict-di>`
62+
63+
Do that in your ng-annotate processed builds and AngularJS will let you in case there are
64+
any missing dependency injection annotations. This is an upcoming feature in AngularJS 1.3
65+
([docs](https://docs.angularjs.org/api/ng/directive/ngApp)).
66+
67+
A future version of ng-annotate may get support for adding the `ng-strict-di` attribute
68+
automatically so you don't have to think about it.
69+
70+
6071
## Tools support
6172
* [Grunt](http://gruntjs.com/): [grunt-ng-annotate](https://www.npmjs.org/package/grunt-ng-annotate) by [Michał Gołębiowski](https://github.com/mzgol)
6273
* [Browserify](http://browserify.org/): [browserify-ngannotate](https://www.npmjs.org/package/browserify-ngannotate) by [Owen Smith](https://github.com/omsmith)

0 commit comments

Comments
 (0)