1
有什么办法可以配置路由器停止显示父母|儿童路线在文件标题?请注意,子路由需要使用标题字符串和“nav:true”进行配置,因为它们显示在导航栏中。如何不显示父母|儿童路线文件标题
有什么办法可以配置路由器停止显示父母|儿童路线在文件标题?请注意,子路由需要使用标题字符串和“nav:true”进行配置,因为它们显示在导航栏中。如何不显示父母|儿童路线文件标题
虽然这看起来非常脏,这应该是可能
activate(params, route, navigationInstruction) { // I neglected to include the final navigationInstruction parameter in earlier posts
route.navModel.setTitle('New Title');
}
或者可能重写buildTitle,这enhancement提到它,但它仍然是开放的。
和Appending a value to the Aurelia router config.title看起来可能接近您正在寻找的答案。