The default TitleStrategy used by the router that updates the title using the Title service.
API
class DefaultTitleStrategy extends TitleStrategy {
constructor(title: Title): DefaultTitleStrategy;
updateTitle(snapshot: RouterStateSnapshot): void;
override buildTitle(snapshot: RouterStateSnapshot): string | undefined;
override getResolvedTitleForRoute(snapshot: ActivatedRouteSnapshot): any;
}
constructor
DefaultTitleStrategy
@returns
DefaultTitleStrategy
updateTitle
voidbuildTitle
string | undefined
@returns
string | undefined
getResolvedTitleForRoute
anyGiven an ActivatedRouteSnapshot, returns the final value of the Route.title property, which can either be a static string or a resolved value.
@returns
any