1👍
The order in which your elements are packaged is correct:
- You declare your parent component.
- Your parent component includes your child component.
- Webpack looks for your child component and processes it, so it will be available for your parent.
- While processing it, the child component’s CSS is added to your stylesheets bundle.
- Your parent component, now completely processed, is added to your stylesheets bundle.
- By the nature of cascading stylesheets, your parent style is below your child style, making it priority over them.
To avoid this, you need to use the scoped
keyword in your style.
- [Vuejs]-Deleteing data from multiple tables depending relationship in Laravel Vuejs Api
- [Vuejs]-Show loading during rendering multiple components in Vue
Source:stackexchange.com