OpenSlides/client/src/app/base.component.ts
Sean Engelhardt 42473e1a8a cleanup and refractor code
-combine the features of the two previous commits
-add prettier and pretty-quick
-more routing and logout button
2018-08-15 10:19:46 +02:00

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);
}
}