SimeonC / md-date-time

Depreciated see
http://simeonc.github.io/sc-date-time
MIT License
174 stars 33 forks source link

[Feature]: allow passing of an auto-date #17

Closed ericodes closed 9 years ago

ericodes commented 9 years ago

Is it possible currently to pass a date to the widget, which the widget would automatically start at? Currently it starts at the current date.

Roundaround commented 9 years ago

If you set a value to the bound ng-model scope variable, the widget will start at that date. It's a little clunky and assumes you're using ng-model to bind the value (I assume this would be the case for 99% of people, but I could be wrong), but it gets the job done.

ericodes commented 9 years ago

Hm...I had that earlier, but I was also working on a directive that was using another directive that was using this :) Will look into whether this is a digest cycle issue.

Thanks for the response!

SimeonC commented 9 years ago

Over in the new repo this is done, see https://github.com/SimeonC/sc-date-time (version 1.0.0)