My Parent :
<template>
<div>
<p class="my-class">Hello world.</p>
<Child/>
</div>
<template>
import Child from "@/components/Child.vue";
<style scoped>
.my-class{
font-size: 18px;
}
</style>
What'd be the child vue? to load scoped style CSS in my Child.Vue component.
class="my-class"toChild? What happens next will amaze you :pscopedfrom the definition of your style then the class becomes global and can be used everywhere, not just its children.