I am trying to bind data-target
to '#' + entry.name + 'modal'
by doing [data-target]="'#' + entry.name + 'modal'"
but doing so keeps throwing a template parse error Can't bind to 'data-target' since it isn't a known property of 'button'
. I am confused why it is saying this since it is how I would always open a modal. Do I have to do it in a different way in angular?
Asked
Active
Viewed 39 times
0

Caleb Bassham
- 1,874
- 2
- 16
- 33
-
1Test `[attr.data-taget]=...`. – developer033 May 13 '17 at 20:43
-
That fixed it, thanks a lot. – Caleb Bassham May 13 '17 at 20:44
-
1@developer033 provide it as an answer so OP can accept it :-) – eko May 13 '17 at 20:51