Skip to content
Permalink
Browse files

docs(ngCsp): fix "directive"'s `restrict` and hide comment from output

  • Loading branch information
gkalpak committed Sep 30, 2016
1 parent 2be5ac6 commit 3253b5586191b7b487af66bb61943247c930c49f
Showing with 6 additions and 6 deletions.
  1. +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.

0 comments on commit 3253b55

Please sign in to comment.
You can’t perform that action at this time.