• Overview
@angular/router

DefaultTitleStrategy

Class

The default TitleStrategy used by the router that updates the title using the Title service.

  
    class DefaultTitleStrategy extends TitleStrategy {}
  
  

updateTitle

void

Sets the title of the browser to the given value.

@paramsnapshotRouterStateSnapshot
@returnsvoid

buildTitle

string | undefined
@paramsnapshotRouterStateSnapshot
@returnsstring | undefined

getResolvedTitleForRoute

any

Given an ActivatedRouteSnapshot, returns the final value of the Route.title property, which can either be a static string or a resolved value.

@returnsany
Jump to details