Child component uses parent component data
parent component
The parent component declares variables and
the parent component passes data to the child component.
Subassembly
Note: Do not modify this data in subcomponents, otherwise an error will be reported
Child components monitor data changes of parent components
Subassembly
The parent component monitors the data changes of the child component
Subassembly
Subcomponent variable declaration
parent component