File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
/**
4
- * TODO(i): this directive is not publicly documented until we know for sure that CSP can't be
5
- * safely feature-detected.
6
- *
4
+ * @ngdoc directive
7
5
* @name angular.module.ng.$compileProvider.directive.ngCsp
8
6
* @priority 1000
9
7
*
10
8
* @description
11
- * Enables CSP (Content Security Protection) support. This directive should be used on the `<html>`
12
- * element before any kind of interpolation or expression is processed.
9
+ * Enables [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) support.
10
+ * This directive should be used on the root element of the application (typically the `<html>`
11
+ * element or other element with the {@link angular.module.ng.$compileProvider.directive.ngApp ngApp}
12
+ * directive).
13
13
*
14
- * If enabled the performance of $parse will suffer.
14
+ * If enabled the performance of template expression evaluator will suffer slightly, so don't enable
15
+ * this mode unless you need it.
15
16
*
16
17
* @element html
17
18
*/
You can’t perform that action at this time.
0 commit comments