DefaultTitleStrategy
Class
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
DefaultTitleStrategyupdateTitle
voidbuildTitle
string | undefined@returns
string | undefinedgetResolvedTitleForRoute
anyGiven an ActivatedRouteSnapshot, returns the final value of the
Route.title property, which can either be a static string or a resolved value.
@returns
anyJump to details