// だめ
Router.onRouteChangeStart = url => {};
// ok
Router.events.on('routeChangeStart', (url) => {
console.log(url);
NProgress.start();
})
// だめ
Router.onRouteChangeStart = url => {};
// ok
Router.events.on('routeChangeStart', (url) => {
console.log(url);
NProgress.start();
})
コメントを残す