Open sulram opened 9 years ago
Unfortunately at the moment you have to do this hack:
router.on('/video/:id', function (id) {
if (app.view === 'video-view' && app.params.video === id) {
return // prevent transition on the same id
}
app.view = '' // trigger a reset
Vue.nextTick(function () {
// wait until the reset kicks in, then set the view again
app.view = 'video-view'
app.params.video = id
})
})
Thanks, Evan @yyx990803
Hello! First, thank you for this nice framework! I'm using director.js with vue, as the hackernews clone example. I'm wondering if there is a way to enable transitions between routes that share the same view. In the snippet bellow, transitions are not triggered between
#/video/1
and#/video/2
, for example.