Friday, June 3, 2016

Angular 2 changes

After upgrading my Angular 2 code to the latest version, my application started to fail with the following error message:

Template parse warnings:

"#" inside of expressions is deprecated. Use "let" instead! ("



                <tr (click)="onSelect(application)" [ERROR ->]*ngFor="#application of applications">


            "): ApplicationsComponent@16:52

The ngFor syntax has changed. We now use let item of items instead of #item of items inside *ngFor.

For more information, check out the great post about ngFor by John Papa:

No comments: