Recently, I embarked on my journey with Vue.js and have been thoroughly enjoying the experience. However, I've stumbled upon a challenge that has me stumped. Despite searching high and low and studying the documentation, I haven't found a solution.
Vue.js has this nifty feature where it automatically adds or merges CSS classes to the root element of your child components when you apply a class. While this is handy, I need to disable this functionality for a specific component so that the classes are added to a child element of the root instead.
To better explain my predicament, I created a fiddle which can be viewed here.
<div id="demo">
<child-component class="some-class"></child-component>
</div>
(The "some-class" is automatically applied, resulting in a green background color)
I'm now left wondering - how do I stop Vue.js from merging CSS classes automatically?