We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3fcbbd commit 257f52bCopy full SHA for 257f52b
docs/content/guide/bootstrap.ngdoc
@@ -73,6 +73,23 @@ If the {@link ng.directive:ngApp `ng-app`} directive is found then Angular will:
73
</html>
74
```
75
76
+As a best practice, consider consider adding an `ng-strict-di` directive on the same element as
77
+`ng-app`:
78
+
79
80
+```html
81
+<!doctype html>
82
+<html ng-app="optionalModuleName" ng-strict-di>
83
+ <body>
84
+ I can add: {{ 1+2 }}.
85
+ <script src="angular.js"></script>
86
+ </body>
87
+</html>
88
+```
89
90
+This will ensure that all services in your application are properly annotated.
91
+See the {@link guide/di#using-strict-dependency-injection dependancy injection strict mode} docs
92
+for more.
93
94
95
## Manual Initialization
0 commit comments