This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
* @ngdoc directive
5
5
* @name ngCsp
6
6
*
7
- * @element html
7
+ * @restrict A
8
+ * @element ANY
8
9
* @description
9
10
*
10
11
* Angular has some features that can conflict with certain restrictions that are applied when using
86
87
</html>
87
88
```
88
89
* @example
89
- // Note: the suffix `.csp` in the example name triggers
90
- // csp mode in our http server!
90
+ <!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! -->
91
91
<example name="example.csp" module="cspExample" ng-csp="true">
92
92
<file name="index.html">
93
93
<div ng-controller="MainController as ctrl">
204
204
</example>
205
205
*/
206
206
207
- // ngCsp is not implemented as a proper directive any more, because we need it be processed while we
208
- // bootstrap the system (before $parse is instantiated), for this reason we just have
209
- // the csp() fn that looks for the `ng-csp` attribute anywhere in the current doc
207
+ // ` ngCsp` is not implemented as a proper directive any more, because we need it be processed while
208
+ // we bootstrap the app (before ` $parse` is instantiated). For this reason, we just have the `csp()`
209
+ // fn that looks for the `ng-csp` attribute anywhere in the current doc.
You can’t perform that action at this time.
0 commit comments