Why not directly use app to access the contents of the parent element obtained by the vue child component?

like A
where a child component needs to access the parent element, I need to use prop
after reading the tutorial, but why not use app.A directly in the child component?

Mar.17,2021

this is a way to avoid confusion in class relations and to keep organized in order to follow.

ideshare.net/youngmoon925/about-flux" rel=" nofollow noreferrer "> clipboard.png

Menu