JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Docking Layout › Use splitter for Vue-router navigation › Reply To: Use splitter for Vue-router navigation
January 28, 2020 at 11:57 am
#100615
Hristofor
Member
Hi olaf@xso,
For some reason it is necessary to include a wrapper around the router-view in order to work. This should fix the problem:
<template>
<div>
<smart-splitter>
<smart-splitter-item size="180">
<router-link to="/">Home</router-link><br />
<router-link to="/about">About</router-link>
</smart-splitter-item>
<smart-splitter-item>
<div>
<router-view :key="$route.path" />
</div>
</smart-splitter-item>
</smart-splitter>
</div>
</template>
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com