-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timepicker doesn't initialize with ngModel #793
Labels
Comments
cyberbobjr
changed the title
Timepicker don't initialize with ngModel
Timepicker doesn't initialize with ngModel
Jul 26, 2016
Yes same problem here. As a temporary hack, I've wrapped the TimePickerComponent so I can initialize the value in ngOnInit.
Usage:
|
If you use my hack, be aware that the change event will no longer propagate to the parent. To get around this, I implemented AfterViewChecked in my component, do a comparison to the bound value, and perform onChanges actions if they're not equal. |
Closed
valorkin
added a commit
that referenced
this issue
Jul 19, 2017
fixes #2036 fixes #1981 ( + min max demo ) fixes #1973 close #1957 ( + seconds demo ) fixes #1935 fixes #1672 feat #1007 added keyboard and mousewheel support fixes #962 fixes #793 fixes #173 fixes #1271 added custom validation demo fixes #1539 bs4 fixes #1253 if input is invalid * feat(timepicker): new timepicker implementation * feat(timepicker): new timepicker implementation testing * chore(timepicker): removed old timepicker implementation * chore(mini-ngrx): added ngrx licence * fix(timepicker): fix seconds * fix(timepicker): fix custom validation demo * fix(tests): fix tests & aot errors * fix(timepicker): min max restrictions * fix(timepicker): min max checks * feat(timepicker): add inputs validation (#2187) * feat(timepicker): add inputs validation * fix(timepicker): add isPM support * feat(timepicker): add isValid output * feat(timepicker): added test plan (#2127) * fix(timepicker): fix ngModelChange demo * fix(test): fix unit tests * docs(timepicker): fix docs conflict, add isValid description
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
this is my code :
the startTime variable is initialized inside the ngOnInit function with a specific DateTime object :
but the timepicker component never show the value of startTime ! only the the current time :(
Does someone have this problem too ?
The text was updated successfully, but these errors were encountered: