Skip to content

Commit 96758c1

Browse files
committed
docs(ngCsp): make the CSP docs publicly visible
1 parent 006fb4f commit 96758c1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/ng/directive/ngCsp.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
'use strict';
22

33
/**
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
75
* @name angular.module.ng.$compileProvider.directive.ngCsp
86
* @priority 1000
97
*
108
* @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).
1313
*
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.
1516
*
1617
* @element html
1718
*/

0 commit comments

Comments
 (0)