2016-03-29 66 views

回答

0

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

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看起来可能接近您正在寻找的答案。