113
rated 0 times
[
117]
[
4]
/ answers: 1 / hits: 33187
/ 8 Years ago, thu, april 7, 2016, 12:00:00
in Angular 2 we have several way to create property bindings in templates.
I could do something like this:
<li *ngFor=#course of courses; #i = index id=someselector-{{i}}>{{course}}</li>
Is it possible to obtain the same result using the square brakets syntax?
<li *ngFor=#course of courses; #i = index [id]=someselector-i>{{course}}</li>
^^^^^^^
how create string concatenation?
Thanks,
G.
More From » angular2-template