parent
57b4ca29e0
commit
5cc1907f57
|
@ -30,7 +30,7 @@ include ../../../../_includes/_util-fns
|
|||
It's the most common of the three directives and we write lots of them as we build our application.
|
||||
|
||||
The [*Attribute* directive](attribute-directives.html) changes the appearance or behavior of an element.
|
||||
The built-in [NgStyle](template-syntax.html#ng-style) directive, for example,
|
||||
The built-in [NgStyle](template-syntax.html#ngStyle) directive, for example,
|
||||
can change several element styles at the same time.
|
||||
We can use it to render text bold, italic, and lime green by binding to a
|
||||
component property that requests such a sickening result.
|
||||
|
@ -212,9 +212,9 @@ figure.image-display
|
|||
and move the directive onto the `<template>`.
|
||||
|
||||
There are extra nuances stemming from
|
||||
Angular's [ngFor micro-syntax](template-syntax#micro-syntax) which expands
|
||||
Angular's [ngFor micro-syntax](template-syntax.html#ngfor-micro-syntax) which expands
|
||||
into an additional `ngForOf` property binding (the iterable) and
|
||||
the `#hero` [local template variable](template-syntax#local-vars)
|
||||
the `#hero` [local template variable](template-syntax.html#local-vars)
|
||||
(the current item in each iteration).
|
||||
|
||||
<a id="unless"></a>
|
||||
|
|
Loading…
Reference in New Issue