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

Custom Id for md2-datepicker #254

Closed shubham-k7 closed 7 years ago

shubham-k7 commented 7 years ago

Hi, As far as I can see, there isn't a way to add a Custom ID to the component! I tried doing it like

<md2-datepicker id="customID"></md2-datepicker>

You can find a working example of the datepicker here with fixed id. However, the id remains the one you assign in your file here..

  /** The id for the datepicker calendar. */
  id = `md2-datepicker-${datepickerUid++}`;

Is there a way we can input() id attribute of the md2-datepicker object? Please guide. Thanks for these nice components!

krupa310 commented 7 years ago

@shubham-k7 will provide it in next build