On this page
DefaultTitleStrategy
class
final
The default TitleStrategy
used by the router that updates the title using the Title
service.
class DefaultTitleStrategy extends TitleStrategy {
title: Title
updateTitle(snapshot: RouterStateSnapshot): void
// inherited from router/TitleStrategy
abstract updateTitle(snapshot: RouterStateSnapshot): void
buildTitle(snapshot: RouterStateSnapshot): string | undefined
getResolvedTitleForRoute(snapshot: ActivatedRouteSnapshot)
}
Provided in
'root'
Properties
Property | Description |
---|---|
title: Title |
Read-Only |
Methods
updateTitle()
|
|||
---|---|---|---|
Sets the title of the browser to the given value. |
|||
|
snapshot |
RouterStateSnapshot |
Returns
void
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v14.angular.io/api/router/DefaultTitleStrategy