api.onPageChangeイベントで現在のルート名を取得する

api.onPageChange((url, title) =>{
  const router = api.container.lookup('service:router');
  console.log(router.currentRoute.name);
}
「いいね!」 2