I am currently working on a timer app where I want to dynamically change the document title. The app features a countdown timer, and during the countdown, I was able to display the timer in the document title successfully. However, once the countdown is complete, I would like the document title to revert back to the default app title. Currently, it is showing the next timer session, which is functioning correctly based on my timer logic. How can I reset the document title back to the default (appTitle) after the timer is done?
title = 'appTitle';
ngOnInit() {
this.timerService.time$.subscribe((time) => {
this.titleTimer.setTitle(this.datePipe.transform(time, 'mm:ss'));
});
}