parent
6973c9f1c8
commit
1d52d4b8c2
|
@ -685,7 +685,7 @@ figure.image-display
|
||||||
Angular still ships with built-in directives; just not as many.
|
Angular still ships with built-in directives; just not as many.
|
||||||
We will write our own directives; just not as many.
|
We will write our own directives; just not as many.
|
||||||
|
|
||||||
In this segment we review some of the most frequently used built-in directivest.
|
In this segment we review some of the most frequently used built-in directives.
|
||||||
|
|
||||||
<a id="ngClass"></a>
|
<a id="ngClass"></a>
|
||||||
.l-main-section
|
.l-main-section
|
||||||
|
@ -945,7 +945,7 @@ figure.image-display
|
||||||
|
|
||||||
When a directive is present on the element, as it is in the earlier NgFor `<hero-detail>` component example,
|
When a directive is present on the element, as it is in the earlier NgFor `<hero-detail>` component example,
|
||||||
the directive sets the value. Accordingly, the `NgFor` directive
|
the directive sets the value. Accordingly, the `NgFor` directive
|
||||||
set the `hero` variable to a hero item from the `heroes` array.
|
sets the `hero` variable to a hero item from the `heroes` array.
|
||||||
|
|
||||||
When there is no directive present, as in phone and fax examples,
|
When there is no directive present, as in phone and fax examples,
|
||||||
Angular sets the variable to the element on which it was defined.
|
Angular sets the variable to the element on which it was defined.
|
||||||
|
|
Loading…
Reference in New Issue