Open gansanz opened 7 years ago
<material-datepicker [(date)]="date" (onSelect)="yourFunctionHere">
<material-datepicker [(date)]="date" (dateChange)="yourFunctionHere">
I've noticed that (dateChange)
gets called on creation -- and twice after clicking a calendar day.
This was undesirable for my situation (Redux), so I'm now using the onSelect
output:
<material-datepicker
[(date)]="date"
(onSelect)="yourFunctionHere"
></material-datepicker>
How can I call a component function when the date is changed?