I\'m using the new version of angular and angular material. I need to get the value of the datepicker at the moment the user change the date to then pass that value
Sorry I didn't post the answer before, but I solved the problem with the @AJT_82's comment. Here is the code:
Component HTML
compoment ts
public onDate(event): void {
this.roomsFilter.date = event;
this.getData(this.roomsFilter.date);
}
Basically, I just passed the $event of the datepicker to get the value.