0👍
Use <style scoped>
to namespace the elements you want namespaced. I work on a pretty complex app written in Vue and when I need to style lots of elements that are shared by many components, I either include unscoped styles in the parent components, or I use scss or css modules in ./src/scss/ to style those shared elements. That way, you get to take advantage of Vue’s scoped styles, but also create more reusable styles if you need.
- [Vuejs]-How do I define a component in a slot which as a prop which is defined in the child component
- [Vuejs]-How to make MSSQL connection using Node.js in vue.js frontend?
Source:stackexchange.com