I have a child component that accepts a props ( data
), and the parent component is passed to the child component.
parent component uses:
<template>
<sub-component :data="sub_data"></sub-component>
</template>
in subcomponents:
export default{
props: {
data: {
type: Array,
required: true
}
}
}
excuse me, after the sub_data
data in the parent component is modified, will the data
of the child component change accordingly,