diff options
Diffstat (limited to 'overlays/spm/frontend/src/app/app.component.ts')
-rw-r--r-- | overlays/spm/frontend/src/app/app.component.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/overlays/spm/frontend/src/app/app.component.ts b/overlays/spm/frontend/src/app/app.component.ts new file mode 100644 index 00000000..7c231203 --- /dev/null +++ b/overlays/spm/frontend/src/app/app.component.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | import { Component, OnInit, OnDestroy } from '@angular/core'; | ||
2 | |||
3 | import { ColorSchemeService } from './color-scheme.service'; | ||
4 | |||
5 | @Component({ | ||
6 | selector: 'app-root', | ||
7 | templateUrl: './app.component.html', | ||
8 | styleUrls: ['./app.component.sass'] | ||
9 | }) | ||
10 | export class AppComponent implements OnInit, OnDestroy { | ||
11 | title = 'spm-frontend'; | ||
12 | |||
13 | constructor(private colorSchemeService: ColorSchemeService) {} | ||
14 | |||
15 | ngOnInit() { | ||
16 | this.colorSchemeService.init(); | ||
17 | } | ||
18 | ngOnDestroy() { | ||
19 | this.colorSchemeService.destroy(); | ||
20 | } | ||
21 | } | ||