You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support request => Please do not submit support request here, see note at the top of this template.
Current behavior
Cannot interpolate ({{}}) into the class attribute of an svg shape unless the same element also has [ngClass]="" on it.
Expected/desired behavior
Interpolation of arbitrary text into class attribute of any element ought to be possible - with or without [ngClass]=""
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
Reproduced here: https://plnkr.co/edit/mVe6NH?p=preview
What is the expected behavior?
Both lines as well as the h1 should turn red as a result of having the 'red' class applied.
What is the motivation / use case for changing the behavior?
.. there should be order in the world ¯_(ツ)_/¯
I expect I won't be the last to be caught by surprise by this seeming inconsistency, though. I did spend a bit of time looking for special rules regarding svg in the angular docs - but came up empty handed. What did I miss?
Current behavior
Cannot interpolate ({{}}) into the class attribute of an svg shape unless the same element also has [ngClass]="" on it.
Expected/desired behavior
Interpolation of arbitrary text into class attribute of any element ought to be possible - with or without [ngClass]=""
Reproduced here:
https://plnkr.co/edit/mVe6NH?p=preview
Both lines as well as the h1 should turn red as a result of having the 'red' class applied.
.. there should be order in the world ¯_(ツ)_/¯
The text was updated successfully, but these errors were encountered: