InfomediaLtd / angular2-materialize

Angular 2 support for Materialize CSS framework.
https://infomedialtd.github.io/angular2-materialize/
MIT License
407 stars 140 forks source link

Datepicker don't bind value to ngModel #10

Closed yobud closed 8 years ago

yobud commented 8 years ago

Hi all!

First, thank you for your awesome work!

Datepicker seems to be working, value is reported to input, but I still have no value in my [(ngModel)]="object.date"

Did I miss something ? Thank you for your feedback.

rubyboy commented 8 years ago

Thanks for the feedback :) I may have time tomorrow to take a look. In the meanwhile I'm adding @criticalbh, who might have a better idea than me why this is happening.

criticalbh commented 8 years ago

I will take a look. Thanks for reporting.

criticalbh commented 8 years ago

-done

rubyboy commented 8 years ago

Thanks @criticalbh. Merged https://github.com/InfomediaLtd/angular2-materialize/commit/845b1167cf4253d689faf4227903165394e67618

@ZeBigDuck would you be able to confirm this is fixed?

yobud commented 8 years ago

Sorry I don't know how to test, it seems that npm registry has not been updated.

rubyboy commented 8 years ago

Give it a try again now - I've deployed latest version (1.4.1) to npm. I've also deployed it to the demo site: http://angular2-materialize.surge.sh

yobud commented 8 years ago

Ok it works! Thank you very much for this awesome lib guys :+1:

rubyboy commented 8 years ago

No worries. Thanks for your feedback!

KyDenZ commented 7 years ago

Hello,

I would like to know if it still works? (15.1.8) I try to make it work and it does not work, even by doing a simple copy paste examples it is always undefined.

Thank you

rubyboy commented 7 years ago

@KyDenZ yes it does. Look at the sample code: https://github.com/InfomediaLtd/angular2-materialize/blob/master/sample/src/app/components/datepicker.ts Demo: https://infomedialtd.github.io/angular2-materialize/#/DatePicker