2018-05-10 16:39:05 +02:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2018-05-11 10:46:27 +02:00
|
|
|
import { YearService } from "../shared/year.service";
|
|
|
|
|
import { Title } from "@angular/platform-browser";
|
2018-05-10 16:39:05 +02:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-awardee-editor',
|
|
|
|
|
templateUrl: './awardee-editor.component.html',
|
|
|
|
|
styleUrls: ['./awardee-editor.component.css']
|
|
|
|
|
})
|
|
|
|
|
export class AwardeeEditorComponent implements OnInit {
|
|
|
|
|
|
2018-05-11 10:46:27 +02:00
|
|
|
constructor(
|
|
|
|
|
private yearProvider: YearService,
|
|
|
|
|
private titleService: Title
|
|
|
|
|
) {}
|
2018-05-10 16:39:05 +02:00
|
|
|
|
|
|
|
|
ngOnInit() {
|
2018-05-11 10:46:27 +02:00
|
|
|
this.titleService.setTitle('Edit awardee');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get years(): Array<number> {
|
|
|
|
|
return this.yearProvider.years;
|
2018-05-10 16:39:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|