mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: replace wrong hyphen with # in aio cheatsheet (#46125)
replace the hyphen symbol wrongly used in the aio cheatsheet doc to create a template variable with the proper # symbol PR Close #46125
This commit is contained in:
committed by
Alex Rickabaugh
parent
983aa233cf
commit
9ed50ad36f
@@ -27,7 +27,7 @@
|
||||
| <code-example format="html" hideCopy language="html"> <div title="Hello {{ponyName}}"> </code-example> | Binds a property to an interpolated string, for example, "Hello Seabiscuit". Equivalent to: <code-example format="html" hideCopy language="html"> <div [title]="'Hello ' + ponyName"> </code-example> |
|
||||
| <code-example format="html" hideCopy language="html"> <p> 
 Hello {{ponyName}} 
</p> </code-example> | Binds text content to an interpolated string, for example, "Hello Seabiscuit". |
|
||||
| <code-example format="html" hideCopy language="html"> <my-cmp [(title)]="name"> </code-example> | Sets up two-way data binding. Equivalent to: <code-example format="html" hideCopy language="html"> <my-cmp [title]="name" (titleChange)="name=$event"> </code-example> |
|
||||
| <code-example format="html" hideCopy language="html"> <video ‐movieplayer …></video> 
<button (click)="movieplayer.play()"> 
 Play 
</button> </code-example> | Creates a local variable `movieplayer` that provides access to the `video` element instance in data-binding and event-binding expressions in the current template. |
|
||||
| <code-example format="html" hideCopy language="html"> <video #movieplayer …></video> 
<button (click)="movieplayer.play()"> 
 Play 
</button> </code-example> | Creates a local variable `movieplayer` that provides access to the `video` element instance in data-binding and event-binding expressions in the current template. |
|
||||
| <code-example format="html" hideCopy language="html"> <p *myUnless="myExpression"> 
 … 
</p> </code-example> | The asterisk \(`*`\) character turns the current element into an embedded template. Equivalent to: <code-example format="html" hideCopy language="html"> <ng-template [myUnless]="myExpression"> 
 <p> 
 … 
 </p> 
</ng-template> </code-example> |
|
||||
| <code-example format="html" hideCopy language="html"> <p> 
 Card No.: {{cardNumber | myCardNumberFormatter}} 
</p> </code-example> | Transforms the current value of expression `cardNumber` using the pipe called `myCardNumberFormatter`. |
|
||||
| <code-example format="html" hideCopy language="html"> <p> 
 Employer: {{employer?.companyName}} 
</p> </code-example> | The safe navigation operator \(`?`\) means that the `employer` field is optional and if `undefined`, the rest of the expression should be ignored. |
|
||||
|
||||
Reference in New Issue
Block a user