Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

DefaultTitleStrategy

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

Sets the title of the browser to the given value.

      
      updateTitle(snapshot: RouterStateSnapshot): void
    
Parameters
snapshot RouterStateSnapshot
Returns

void