I know this is not related to any encoding, but they can follow the same syntax as in Angular 1
<input ng-model="hero.name" placeholder="name" type="text">
AngulAR 2 and its larger syntax are still
<input [(ngModel)]="hero.name" placeholder="name" type="text">
If they do, would it be very helpful if people adapt the changes in Angular JS?
Similarly for ng-repeat they changed to ngFor
<ul ngFor let-item [ngForOf]="items" let-i="index" [ngForTrackBy]="trackByFn">
<li>...</li>
</ul>
<ul ng-repeat="item in items track by myTrackingFunction(n)">
<li>...</li>
</ul>
source
share