42473e1a8a
-combine the features of the two previous commits -add prettier and pretty-quick -more routing and logout button
13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import { Title } from '@angular/platform-browser';
|
|
|
|
//provides functions that might be used by a lot of components
|
|
export abstract class BaseComponent {
|
|
private titleSuffix = ' - OpenSlides 3';
|
|
|
|
constructor(protected titleService: Title) {}
|
|
|
|
setTitle(prefix: string) {
|
|
this.titleService.setTitle(prefix + this.titleSuffix);
|
|
}
|
|
}
|