Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Parent view duplicated when using view-router

$
0
0

I have a parent-> child setup in a view. When I use view-router for the child component, it actually duplicates the parent view inside the router - so I effectively get 2 renderings of the parent-view. Looking at the html its creating the child component inside an ion-page tage even though I dont have it in my template.

Example html:

<template>
  <ion-page>
    <ion-content :fullscreen="true">
      <div id="container">
            <router-view></router-view>
        </div>
    </ion-content>
  </ion-page>
</template>

Route:

{
     path: '/orders',
     name: 'Orders',
     component: () =>
             import(/* webpackChunkName: "home" */ "@/views/orderlist/OrderListHome"),
     children : [
        {
           path: '',
           name: 'PendingOrders',
           component : () =>
                   import(/* webpackChunkName: "home" */ "@/views/orderlist/PendingOrders")
         }
     ]
   }

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>