Vue Router Child component being called first than parent
Clash Royale CLAN TAG #URR8PPP Vue Router Child component being called first than parent I'm using the Vue Cli with vue-router. I created this structure in my route: { path: '/admin', component: Layout, children: [ { path: '/', component: Home, meta: { requiresAuth: true } }, There is a hierarchically larger component: layout. And the routes call the child components. Example: Home. I make an ajax call in the Layout component, and the Home component needs to manipulate the request response data. The problem is that the Home component is being called first than the component Layout. If the Home component is a sub router of the layout component, why is the component Home being called first? Does anyone know how to respond? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continue...