preferences.component.ts 467 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import { Component, OnInit } from '@angular/core';

import { PreferencesService, Prefs } from './preferences.service';

@Component({
  selector: 'app-preferences',
  templateUrl: './preferences.component.html',
  styleUrls: ['./preferences.component.css']
})
export class PreferencesComponent implements OnInit {

  constructor(
    public prefs: PreferencesService,
  ) { }

  ngOnInit() {
  }

  public prefChanged(prefs: Prefs) {
    this.prefs.save(prefs);
  }
}