Aurelia 如何在文档标题上不显示父|子路由

Aurelia 如何在文档标题上不显示父|子路由,aurelia,Aurelia,有没有办法将路由器配置为在文档标题处停止显示父|子路由?请注意,需要使用标题字符串和“nav:true”配置子路由,因为它们显示在导航栏中。虽然这看起来非常脏,但这应该是可能的 activate(params, route, navigationInstruction) { // I neglected to include the final navigationInstruction parameter in earlier posts route.navModel.setTitle('

有没有办法将路由器配置为在文档标题处停止显示父|子路由?请注意,需要使用标题字符串和“nav:true”配置子路由,因为它们显示在导航栏中。

虽然这看起来非常脏,但这应该是可能的

activate(params, route, navigationInstruction) { // I neglected to include the final navigationInstruction parameter in earlier posts
  route.navModel.setTitle('New Title');
}
或者可能覆盖buildTitle,这引用了它,但它仍然处于打开状态


看起来它可能接近你想要的答案。

虽然这看起来很脏,但这应该是可能的

activate(params, route, navigationInstruction) { // I neglected to include the final navigationInstruction parameter in earlier posts
  route.navModel.setTitle('New Title');
}
或者可能覆盖buildTitle,这引用了它,但它仍然处于打开状态

看起来它可能很接近你想要的答案