I saw this example in the official website of angular material
https://stackblitz.com/angular/xxjleavorkm?file=src%2Fapp%2Fdatepicker-date-class-example.ts
How to select the dates dynamically like If I have scheduled a meeting of say October from date 7 to 14 how to highlight the days for it.
There is a class called DateRange in the api but how to use it where to bind it?
There are examples only showing the angular materials Date Range picker integration with the input fields with form controls labelled as 'start' and 'end' that are probably taking the inputs of the date range but in my case I want to provide the predefined input from the backend like I would be having a start date and end date which i need to set directly in the date range picker.
P.S Also tried with saturn date Range picker but its confusing having lot more modules and dependencies to be added.
A stackblitz example would be appreciated..!!
In Stackblitz, change here like this.
Edit:
So, you are looking for a date range selector.
https://stackblitz.com/angular/ovmarbmryxd?file=src%2Fapp%2Fdate-range-picker-overview-example.ts
EDIT 2:
You can use
formControlName
to get the value of selected dates.There is another working example.