You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm porting my projects to TypeScript, and I was used to dynamically set the page title in the activate function:
activate(params,routeConfig,navigationInstruction){routeConfig.navModel.setTitle("My Title");// This is simplified, the title will be set after retrieving server side info}
but using TypeScript I've found the RouteConfig.navModel property isn't declared and the compiler complains:
Property 'navModel' does not exist on type 'RouteConfig'.
The text was updated successfully, but these errors were encountered:
@heruan Thank you for the contribution. I can verify that the property exists in the ES2016 skeleton. The Typescript definition files are generated from the codebase itself, so feel free to submit a pull request with the necessary file changes for this fix.
The property "navModel" exists on the RouteConfig object, but it was missing from the interface, breaking Typescript. It is now added.
Fixesaurelia#285.
I'm porting my projects to TypeScript, and I was used to dynamically set the page title in the
activate
function:but using TypeScript I've found the
RouteConfig.navModel
property isn't declared and the compiler complains:The text was updated successfully, but these errors were encountered: