app.component.html
---------------------------
<div>
To render the name variable we use this syntax <pre ngNonBindable>{{ name }}</pre>
</div>
<br>
<input type="text" [(ngModel)]='val'>
<some-element [ngPlural]="val">
<ng-template ngPluralCase="=1">Geek</ng-template>
<ng-template ngPluralCase="=2">Geeks</ng-template>
</some-element>
app.component.ts
-----------------------
val = 2;
PostedBy:pankaj_bhakre
No comments:
Post a Comment