docs(aio): template -> ng-template (#15912)
This commit is contained in:
parent
4a052cd343
commit
8659bd2c4b
|
@ -102,7 +102,7 @@ is available to <code>declarations</code> of this module.</p>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><code><p <b>*myUnless</b>="myExpression">...</p></code></td>
|
<td><code><p <b>*myUnless</b>="myExpression">...</p></code></td>
|
||||||
<td><p>The <code>*</code> symbol turns the current element into an embedded template. Equivalent to:
|
<td><p>The <code>*</code> symbol turns the current element into an embedded template. Equivalent to:
|
||||||
<code><template [myUnless]="myExpression"><p>...</p></template></code></p>
|
<code><ng-template [myUnless]="myExpression"><p>...</p></ng-template></code></p>
|
||||||
</td>
|
</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><code><p>Card No.: <b>{{cardNumber | myCardNumberFormatter}}</b></p></code></td>
|
<td><code><p>Card No.: <b>{{cardNumber | myCardNumberFormatter}}</b></p></code></td>
|
||||||
|
@ -139,7 +139,7 @@ is available to <code>declarations</code> of this module.</p>
|
||||||
<td><p>Turns the li element and its contents into a template, and uses that to instantiate a view for each item in list.</p>
|
<td><p>Turns the li element and its contents into a template, and uses that to instantiate a view for each item in list.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><code><div <b>[ngSwitch]</b>="conditionExpression"><br> <template <b>[<b>ngSwitchCase</b>]</b>="case1Exp">...</template><br> <template <b>ngSwitchCase</b>="case2LiteralString">...</template><br> <template <b>ngSwitchDefault</b>>...</template><br></div></code></td>
|
<td><code><div <b>[ngSwitch]</b>="conditionExpression"><br> <ng-template <b>[<b>ngSwitchCase</b>]</b>="case1Exp">...</ng-template><br> <ng-template <b>ngSwitchCase</b>="case2LiteralString">...</ng-template><br> <ng-template <b>ngSwitchDefault</b>>...</ng-template><br></div></code></td>
|
||||||
<td><p>Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of <code>conditionExpression</code>.</p>
|
<td><p>Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of <code>conditionExpression</code>.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
|
|
Loading…
Reference in New Issue