adev/src/content/examples/built-in-directives/src/app/app.component.html
Current item name: {{ currentItem.name }}
without NgModel:
[(ngModel)]:
(ngModelChange)="...name=$event":
(ngModelChange)="setUppercaseName($event)"
currentClasses is {{ currentClasses | json }}
This div is initially saveable, unchanged, and special.
Refresh currentClasses This div should be {{ canSave ? '' : 'not' }} saveable, {{ isUnchanged ? 'unchanged' : 'modified' }} and {{ isSpecial ? '' : 'not' }} special after clicking "Refresh".
This div is special
Helpful study course
Study course
This div is x-large or smaller.
currentStyles is {{ currentStyles | json }}
This div is initially italic, normal weight, and extra large (24px).
italic: |normal: |xlarge: Refresh currentStyles
This div should be {{ canSave ? 'italic' : 'plain' }}, {{ isUnchanged ? 'normal weight' : 'bold' }} and, {{ isSpecial ? 'extra large' : 'normal size' }} after clicking "Refresh".
If isActive is true, app-item-detail will render:
Toggle app-item-detail
If currentCustomer isn't null, say hello to Laura:
Hello, {{ currentCustomer.name }}
nullCustomer is null by default. NgIf guards against null. Give it a value to show it:
Hello, {{ nullCustomer }} Give nullCustomer a value
Add {{ currentItem.name }} with template
Show with class
Hide with class
ItemDetail is in the DOM but hidden
Show with style
Hide with style
{{ item.name }}
*ngFor with ItemDetailComponent element
with semi-colon separator
{{ i + 1 }} - {{ item.name }}
with comma separator
{{ i + 1 }} - {{ item.name }}
Reset itemsChange idsClear counts
without trackBy
({{ item.id }}) {{ item.name }}
Item DOM elements change #{{ itemsNoTrackByCount }} without trackBy
with trackBy
({{ item.id }}) {{ item.name }}
Item DOM elements change #{{ itemsWithTrackByCount }} with trackBy
with trackBy and semi-colon separator
({{ item.id }}) {{ item.name }}
with trackBy and comma separator
({{ item.id }}) {{ item.name }}
with trackBy and space separator
({{ item.id }}) {{ item.name }}
with generic trackById function
({{ item.id }}) {{ item.name }}
Pick your favorite item
{{ i.name }}
Are you as bright as {{ currentItem.name }}?