Permalink
Browse files
docs(ngCsp): fix "directive"'s `restrict` and hide comment from output
- Loading branch information
Showing
with
6 additions
and
6 deletions.
-
+6
−6
src/ng/directive/ngCsp.js
|
|
@@ -4,7 +4,8 @@ |
|
|
* @ngdoc directive |
|
|
* @name ngCsp |
|
|
* |
|
|
* @element html |
|
|
* @restrict A |
|
|
* @element ANY |
|
|
* @description |
|
|
* |
|
|
* Angular has some features that can conflict with certain restrictions that are applied when using |
|
|
@@ -86,8 +87,7 @@ |
|
|
</html> |
|
|
``` |
|
|
* @example |
|
|
// Note: the suffix `.csp` in the example name triggers |
|
|
// csp mode in our http server! |
|
|
<!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! --> |
|
|
<example name="example.csp" module="cspExample" ng-csp="true"> |
|
|
<file name="index.html"> |
|
|
<div ng-controller="MainController as ctrl"> |
|
|
@@ -204,6 +204,6 @@ |
|
|
</example> |
|
|
*/ |
|
|
|
|
|
// ngCsp is not implemented as a proper directive any more, because we need it be processed while we |
|
|
// bootstrap the system (before $parse is instantiated), for this reason we just have |
|
|
// the csp() fn that looks for the `ng-csp` attribute anywhere in the current doc |
|
|
// `ngCsp` is not implemented as a proper directive any more, because we need it be processed while |
|
|
// we bootstrap the app (before `$parse` is instantiated). For this reason, we just have the `csp()` |
|
|
// fn that looks for the `ng-csp` attribute anywhere in the current doc. |