-1👍
You could do style binding like so:
@Component({
template: '<h1 :style="color: blue;">Not a Single File Component</h1>'
})
Alternatively, you could assign the h1 an id and reference the id in the stylesheet specifically.
@Component({
template: '<h1 id="whatever-this-is">Not a Single File Component</h1>'
})
...
<style>
#whatever-this-is {
color: blue;
}
</style>
- [Vuejs]-Laravel and Vuejs – how do I do with Translations
- [Vuejs]-How to use Nuxt Context to call Axios request with param
Source:stackexchange.com