Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

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

Open damsorian opened 7 years ago

damsorian commented 7 years ago

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

krupa310 commented 7 years ago

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

damsorian commented 7 years ago

@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">