I wonder is there any filtering mechanism for the Angular Material Date Picker, So that I can set only Mondays are selectable from the Date Picker.
Thanks in Advance.
Regards...
I wonder is there any filtering mechanism for the Angular Material Date Picker, So that I can set only Mondays are selectable from the Date Picker.
Thanks in Advance.
Regards...
@Nimantha - Take a look at this. It defaults to next monday on datepicker.
Yes. There is an attribut called
md-date-filter
which you can use to specify the day you want to be selected by user. In the below example as you are returingreturn day === 1;
It will allow to select mondays only. you can change it from o to 7 as required.html view file
In Controller File
http://codepen.io/next1/pen/EKmdPx