summaryrefslogtreecommitdiff
path: root/overlays/spm/frontend/src/app/app.component.ts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-26 13:58:07 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-26 13:58:07 +0200
commitfc6cf6169868e60c189e4b243330c3717ff159f3 (patch)
tree3f6dea9c1420e23756257b5abea27ec9ed92d58a /overlays/spm/frontend/src/app/app.component.ts
parent84f2affd66a0ff3947b91a30308cb8e6a8ff7594 (diff)
downloadnixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.gz
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.bz2
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.xz
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.zip
...
Diffstat (limited to 'overlays/spm/frontend/src/app/app.component.ts')
-rw-r--r--overlays/spm/frontend/src/app/app.component.ts21
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 @@
1import { Component, OnInit, OnDestroy } from '@angular/core';
2
3import { ColorSchemeService } from './color-scheme.service';
4
5@Component({
6 selector: 'app-root',
7 templateUrl: './app.component.html',
8 styleUrls: ['./app.component.sass']
9})
10export 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}