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
To pass a variable in Angular 7 you can use it just like:
[attr.data-target] = "theme.themeId"
You could used attribute binding. Something like that:
[attr.data-target]="'#' + theme.themeId"
Yes exactly you can use
*ngFor="a of Array; index as i;"
and
[attr.data-target]="'#test' + i"
and
name="test{{i}}