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

Commit 6743ccf

Browse files
sbenjamincaitp
authored andcommitted
docs(guide/directive): directives can be comments, too
While it's not a widely used feature, and likely shouldn't be recommended, it is possible to use a directive via a comment node. Closes #7061
1 parent 2ad7bb9 commit 6743ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/directive.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ how to implement them.
1818
## What are Directives?
1919

2020
At a high level, directives are markers on a DOM element (such as an attribute, element
21-
name, or CSS class) that tell AngularJS's **HTML compiler** ({@link ng.$compile `$compile`}) to
21+
name, comment or CSS class) that tell AngularJS's **HTML compiler** ({@link ng.$compile `$compile`}) to
2222
attach a specified behavior to that DOM element or even transform the DOM element and its children.
2323

2424
Angular comes with a set of these directives built-in, like `ngBind`, `ngModel`, and `ngView`.

0 commit comments

Comments
 (0)