ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

fix(timepicker): spinner doesn't fire change event

Open leeyikjiun opened this issue 10 years ago • 3 comments

The binding for timepicker spinner works but is there a way to get it to fire a change event?

leeyikjiun avatar Feb 11 '16 16:02 leeyikjiun

it should bind to ngModel is it mutating Date object?

valorkin avatar Feb 11 '16 16:02 valorkin

The Date object is mutated but I'm trying to inform another Component that the Date object has changed. Sadly, the ngOnChanges method only fires on reference change and not mutation. Hence, I want to trigger a EventEmitter from the "onChange" method of spinner.

I searched online and they said to implement my own DoCheck but the documentation is very limited.

I'm fairly new to Angular2, what's the right way to do what I mentioned above?

leeyikjiun avatar Feb 12 '16 05:02 leeyikjiun

Has a workaround been identified for this, I need this ability as well.

ghost avatar Mar 26 '17 16:03 ghost