funky-framadate-front/src/app/pages/dates/dates.component.ts

22 lines
543 B
TypeScript
Raw Normal View History

2019-08-10 16:20:59 +02:00
import {Component, OnInit} from '@angular/core';
import {ConfigService} from '../../config.service';
2019-08-10 16:57:36 +02:00
import {BaseComponent} from '../base-page/base.component';
2019-08-10 16:20:59 +02:00
@Component({
selector: 'framadate-dates',
templateUrl: './dates.component.html',
styleUrls: ['./dates.component.scss']
})
2019-08-10 16:57:36 +02:00
export class DatesComponent extends BaseComponent implements OnInit {
2019-08-11 16:21:49 +02:00
constructor(public config: ConfigService) {
2019-08-10 16:20:59 +02:00
super(config);
}
ngOnInit() {
}
addDate() {
2019-08-12 14:40:33 +02:00
this.config.dateList.push({ literal: '' });
2019-08-10 16:20:59 +02:00
}
}