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.
23 lines
503 B
23 lines
503 B
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}`); |
|
} |
|
}
|
|
|