[Vuejs]-Vuejs root and component structure

0👍

Root Component is always app instance.

RootComponent variabile contains global options (property) for app Component. (Component Instance Properties)

About the side question, You should consider if the component handle application data (shared between different component inside your page) or local data between the component and it’s parent.

In the first case is better to use a State Management Library as Vuex, otherwise you should use $emit to change parent data passed via props to the child component.

Leave a comment