Toolbar Title Service

class ToolbarTitleService

This service updates the title shown in the toolbar in the App Component.

It:

  1. Sets the title when a new page is loaded.

toolbar-title.service.ts
@Injectable({
  providedIn: 'root',
})
export class ToolbarTitleService {
  private readonly _loggerService = inject(LoggerService);

  private readonly _toolbarTitle: WritableSignal<string>;

  public constructor() {
    // Buy to unlock
  }

  public get toolbarTitle(): Signal<string> {
    // Buy to unlock
  }

  public setToolbarTitle(toolbarTitle: string) {
    // Buy to unlock
  }
}

Last updated