[SOLVED] Router.navigate


#1

Hi!
How to open the file from one view to another view in js, used router.navigate?
In html is simple:

href="/left-page-1/" data-view=".view-left"

but how about js?
for example this is not work:

          .. app.views.left.router.navigate('/left-page-1/');
          .. app.router.navigate('/left-page-1/','.view-left');
          .. app.router.navigate(app.views.left.url, { url:'/left-page-1/', ignoreCache: true, reloadCurrent: true });

#2

Sorry, I solved!
I was use split-view template, but in his code is the little bug

// Init/Create left panel view
var mainView = app.views.create('.view-left', {
  url: '/'
});

// Init/Create main view
var mainView = app.views.create('.view-main', {
  url: '/'
});

mainView for main and left view.
I changed it to leftView
After this all is fine)

leftView.router.navigate('/left-page-1/');