DefaultTitleStrategy
Class
The default TitleStrategy used by the router that updates the title using the Title service.
updateTitle
voidSets the title of the browser to the title built from the given router state.
@paramsnapshot
RouterStateSnapshotThe current router state. The title is taken from the deepest primary route.
@returns
voidbuildTitle
string | undefined@returns
string | undefinedThe title of the deepest primary route.
getResolvedTitleForRoute
string | undefinedGiven an ActivatedRouteSnapshot, returns the final value of the
Route.title property, which can either be a static string or a resolved value.
@returns
string | undefinedJump to details