var myComponent= Vue.extend({
template:
`
<div class="container">
</div>
`
,
props: [],
components: {}
,
data() {
return {
}
},
methods: {
}
})
I have a component above that is created using the Vue.extend. It takes in data, methods and other things that are all locally scoped. I'm wondering if I can have CSS that is locally scoped to this component within the object passed to vue.extend()
I'm not using nodejs (using django) so I don't think I can use the recommended syntax within .vue elements (If I'm mistaken and I can use .vue files and the below syntax please let me know):
<style scoped>
/* local styles */
</style>