File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,28 @@ mirrors the process of compiling source code in
4343Before we can write a directive, we need to know how Angular's {@link guide/compiler HTML compiler}
4444determines when to use a given directive.
4545
46- In the following example, we say that the `<input>` element **matches** the `ngModel` directive.
46+ Similar to the terminology used when an [element **matches** a selector]
47+ (https://developer.mozilla.org/en-US/docs/Web/API/Element.matches), we say an element **matches** a
48+ directive when the directive is part of its declaration.
49+
50+ In the following example, we say that the `<input>` element **matches** the `ngModel` directive
4751
4852```html
4953<input ng-model="foo">
5054```
5155
52- The following also **matches** `ngModel`:
56+ The following `<input>` element also **matches** `ngModel`:
5357
5458```html
5559<input data-ng-model="foo">
5660```
5761
62+ And the following <person> element **matches** the `person` directive:
63+
64+ ```html
65+ <person>{{name}}</person>
66+ ```
67+
5868### Normalization
5969
6070Angular **normalizes** an element's tag and attribute name to determine which elements match which
You can’t perform that action at this time.
0 commit comments