md2 icon indicating copy to clipboard operation
md2 copied to clipboard

Question: how to set the default 'format' and 'mode' for all <m2-datepicker>?

Open damsorian opened this issue 8 years ago • 2 comments

hello, how to set the default 'format' and 'mode' for all <m2-datepicker>?

damsorian avatar Aug 01 '17 22:08 damsorian

@damsorian do not apply "format" and "mode" to the datepicker for the default value. Ex.<md2-datepicker [(ngModel)]="date"> For more information check Doc

krupa310 avatar Aug 02 '17 05:08 krupa310

@krupa310 I mean if there is some way to configure the format and mode for all <md2-datepicker> maybe like this

The idea is not always use: <md2-datepicker mode="portrait" format="MM/dd/y">

damsorian avatar Aug 02 '17 13:08 damsorian