I would like to implement a Daterange picker using mat-calendar in Angular. I am not able to get implement it in a correct way. Can anyone help me in this.
My html code:
<mat-calendar [selected]="range"
[comparisonStart]="range.start"
[comparisonStart]="range.end"
(selectedChange)="onChange($event)"></mat-calendar>
My Ts Code:
range: DateRange<Date>;
constructor(){}
ngOnInit(){
}
onChange(event)
{
console.log(event);
}