0

Frind's. I have a simple Angular application with the material date picker. In this application some data providing from the back-end. Now I do like to active the date picker date, based on the back-end dynamic data(which date has data). The below link is solve my problem partially but not fully solved the problem.

https://stackoverflow.com/questions/55987412/angular5-how-to-highlight-certain-dates-in-mat-datepicker enter image description here

The above link solves the problem by activating 2 specific dates as hardcoded, But I want it should be the dynamically active all date, which date has data into the back-end.

Hopefully, someone experienced person will fix this problem and help me to complete my project successfully.

Al Imran
  • 115
  • 1
  • 2
  • 12
  • you could use ``. `date` is assigned `onInit` via a call to your backend.. – iLuvLogix Nov 17 '21 at 17:54
  • **HTML** `` and **TS** `dateClass = (d: Date) => { const date = d.getDate(); return (date === 6 || date === 20) ? 'example-custom-date-class' : undefined; }` I am using like this way. – Al Imran Nov 17 '21 at 18:16

0 Answers0