to show multiple different views on the same route, Vue router supports ‘named views’. named views allow us to create multiple named router views and then assign components to all views in the route. to show this we modify our main router view in App.vue as follows
  <div id="app">
    <img src="./assets/logo.png">

    <router-link to="/">/Home</router-link>  
    <router-link to="/users">/users</router-link>  
    <router-link to="/customers">/customers</router-link>  

    <p>Main Router View</p>


    <p>Secondary Router View</p>

    <router-view name="secondary"/>
in addition to our main router view we added a secondary router view that is aptly named secondary now we also create a new component called CustomersSecondary.vue with the following content
        <div>CUSTOMERS SECONDARY</div>


export default {
and then we modify our customers route as follows
      path: '/customers',
      name: 'customers',
        default: Customers,
        secondary: CustomersSecondary
instead of pointing the route to a single component we use the components attribute of the route to assign multiple components. The default component will be shown in the default router view and the component assigned to ‘secondary’ the name of our router view will be shown in the named router view
Michael Salzlechner is the CEO of StarZen Technologies, Inc. He was part of the Windows Team at Data Access Worldwide that created the DataFlex for Windows Product before joining StarZen Technologies. StarZen Technologies provides consulting services as well as custom Application development and third party products