You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
503 B
24 lines
503 B
5 years ago
|
import { Component, OnInit } from '@angular/core';
|
||
|
import {MatDatepickerInputEvent} from '@angular/material/datepicker';
|
||
|
|
||
|
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-dateselect',
|
||
|
templateUrl: './dateselect.component.html',
|
||
|
styleUrls: ['./dateselect.component.scss'],
|
||
|
})
|
||
|
|
||
|
export class DateselectComponent implements OnInit {
|
||
|
|
||
|
constructor() { }
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
events: string[] = [];
|
||
|
|
||
|
addEvent(type: string, event: MatDatepickerInputEvent<Date>) {
|
||
|
this.events.push(`${type}: ${event.value}`);
|
||
|
}
|
||
|
}
|