Add frontend unit tests (Part 2)
This commit is contained in:
@@ -4,7 +4,7 @@ import {Book} from "../../features/book/model/book.model";
|
||||
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class PageTitleService {
|
||||
private titleService = inject(Title)
|
||||
protected titleService = inject(Title)
|
||||
|
||||
private appName = 'BookLore'
|
||||
|
||||
@@ -22,4 +22,4 @@ export class PageTitleService {
|
||||
setPageTitle(pageTitle: string) {
|
||||
this.titleService.setTitle([pageTitle, this.appName].filter(part => part).join(' - '));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user