string concatenation with property binding in angular2

I found out that you can use this kind of syntax using square brackets:

<li *ngFor="#course of courses; #i = index" [id]="'someselector-'+i">{{course}}</li>

For more information, please have a look to this interesting article from Pascal Precht: http://blog.thoughtram.io/angular/2015/08/11/angular-2-template-syntax-demystified-part-1.html

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)