I\'m working with angular 2 typescript and i want to create a toggle collapse list. This is simple with single id and data-target but i loop throught a list so i ha
data-target
Yes exactly you can use
*ngFor="a of Array; index as i;"
and
[attr.data-target]="'#test' + i"
name="test{{i}}