summaryrefslogtreecommitdiff
path: root/overlays/spm/frontend/src/app/app.component.ts
blob: 7c23120336ebc23f8aa7b366045ddf0a2b9cb54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Component, OnInit, OnDestroy } from '@angular/core';

import { ColorSchemeService } from './color-scheme.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.sass']
})
export class AppComponent implements OnInit, OnDestroy {
  title = 'spm-frontend';

  constructor(private colorSchemeService: ColorSchemeService) {}

  ngOnInit() {
    this.colorSchemeService.init();
  }
  ngOnDestroy() {
    this.colorSchemeService.destroy();
  }
}