Lets say I have the following in the index main page:
<div class="view view-init view-main">
<div data-name="home" class="page">
<a href="/dashboard/" data-view=".view-dashboard">dash app</a><br/>
</div>
</div>
<div class="view view-dashboard view-init"></div>
No once the user clicks on dashboard link i want the content to open up IN dashboard view not in the main view.
This is my app.js
var dashboardView = app.views.create('.view-dashboard', {
url: '/dashboard/'
})
this is my route file
{
path : ‘/dashboard/’,
componentUrl: ‘./dashboard.html’,
name : ‘dashboard’,
},
Can someone please help me out ?
Thanks