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
I have the same issue. I need to keep the class in the component because it make sense for the component to know it's own class name for style etc..
But also need to keep the class attribute on the component call because it's a wrapper component around some server side generated content (header and footer), so without this class I have a glitch while Vuejs mount the component with the class name and so the browser doesn't apply the css.
I tried to look in beforeMount or mountedto remove duplicates but can't find a way. I know it works anyway, but the double class name looks weird, so if you know a solution to remove this, it would be nice.
What problem does this feature solve?
It looks a little awkward if there are duplicate class names in a DOM element.
What does the proposed API look like?
If you look into this fiddle.
The
div
element offoo
component will have twobar
classes in it. So it looks like.If the two classes would have been merged into one.
It would have worked and behaved exactly in the same way but the code will look a lot cleaner.
The text was updated successfully, but these errors were encountered: