Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 609264f

Browse files
gkalpakpetebacondarwin
authored andcommitted
docs(ngCsp): fix "directive"'s restrict and hide comment from output
1 parent f159e61 commit 609264f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ng/directive/ngCsp.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* @ngdoc directive
55
* @name ngCsp
66
*
7-
* @element html
7+
* @restrict A
8+
* @element ANY
89
* @description
910
*
1011
* Angular has some features that can conflict with certain restrictions that are applied when using
@@ -86,8 +87,7 @@
8687
</html>
8788
```
8889
* @example
89-
// Note: the suffix `.csp` in the example name triggers
90-
// csp mode in our http server!
90+
<!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! -->
9191
<example name="example.csp" module="cspExample" ng-csp="true">
9292
<file name="index.html">
9393
<div ng-controller="MainController as ctrl">
@@ -204,6 +204,6 @@
204204
</example>
205205
*/
206206

207-
// ngCsp is not implemented as a proper directive any more, because we need it be processed while we
208-
// bootstrap the system (before $parse is instantiated), for this reason we just have
209-
// the csp() fn that looks for the `ng-csp` attribute anywhere in the current doc
207+
// `ngCsp` is not implemented as a proper directive any more, because we need it be processed while
208+
// we bootstrap the app (before `$parse` is instantiated). For this reason, we just have the `csp()`
209+
// fn that looks for the `ng-csp` attribute anywhere in the current doc.

0 commit comments

Comments
 (0)