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
Also note that binding to class needs to use a dollar sign for attribute binding class$="{{...}}", otherwise you'd be trying to bind to the JS property named class, which does nothing (the class attribute maps to the JS property className, so you can technically also do class-name="{{...}}"). We usually recommend to just do attribute binding for class, sinceclass-nameis a little clumsy, and when binding to inline style, you must use attribute binding (e.g. style$="{{...}}" for compatibility with IE.
If I have an element in a dom-repeat element and I want to add the current index as a part of a class name how would I accomplish that?
For example:
The productClass function returns "plan-" + the index but this code won't work due to the changes in interpolation.
The text was updated successfully, but these errors were encountered: