diff options
| author | Igor Minar | 2012-04-30 15:37:12 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-04-30 15:37:12 -0700 |
| commit | 96758c1c5277ca9041e82c4c1d2e2c473cd477b0 (patch) | |
| tree | 6e984164931b54083141b0d480ccea6590fda04b /src | |
| parent | 006fb4fbeb768e4b50659838f7587bae9847371d (diff) | |
| download | angular.js-96758c1c5277ca9041e82c4c1d2e2c473cd477b0.tar.bz2 | |
docs(ngCsp): make the CSP docs publicly visible
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/directive/ngCsp.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ng/directive/ngCsp.js b/src/ng/directive/ngCsp.js index d4a3a45d..55fe8b3a 100644 --- a/src/ng/directive/ngCsp.js +++ b/src/ng/directive/ngCsp.js @@ -1,17 +1,18 @@ 'use strict'; /** - * TODO(i): this directive is not publicly documented until we know for sure that CSP can't be - * safely feature-detected. - * + * @ngdoc directive * @name angular.module.ng.$compileProvider.directive.ngCsp * @priority 1000 * * @description - * Enables CSP (Content Security Protection) support. This directive should be used on the `<html>` - * element before any kind of interpolation or expression is processed. + * Enables [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) support. + * This directive should be used on the root element of the application (typically the `<html>` + * element or other element with the {@link angular.module.ng.$compileProvider.directive.ngApp ngApp} + * directive). * - * If enabled the performance of $parse will suffer. + * If enabled the performance of template expression evaluator will suffer slightly, so don't enable + * this mode unless you need it. * * @element html */ |
