Saltar al contenido principal

Function: useSetTempTitle()

useSetTempTitle(tempTitle, durationMs?): void

Defined in: src/infrastructure/viewport/viewport.service.ts:375

Temporarily changes the document title, restoring the original after durationMs.

Parameters

tempTitle

string

The temporary title to display.

durationMs?

number = 3000

How long to show it (default: 3000).

Returns

void

Example

useSetTempTitle("(2) New messages!", 5000);
// title reverts after 5 seconds