Ngx-bootstrap: BsDatepicker: (change) doesn't fire for ngModel

Created on 8 Sep 2017  路  2Comments  路  Source: valor-software/ngx-bootstrap

Hi there,

I'm trying to listen for the (change) event while using bsDatepicker, but it never fires. And (bsValueChange) is fired before the ngModel gets updated!

Should I discard ngModel entirelly and just bind [value] and update my controller with the value from (bsValueChange)?

Thanks!

comp(datepicker)

Most helpful comment

(ngModelChange) is fired only for input fields,
and it's designed that (bsValueChange) is fired before ngModelChange

All 2 comments

You can bind to model change using (ngModelChange) , it's fired after model is changed.

(ngModelChange) is fired only for input fields,
and it's designed that (bsValueChange) is fired before ngModelChange

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pgeyman picture pgeyman  路  3Comments

Scooviese picture Scooviese  路  3Comments

srjkrl20011991 picture srjkrl20011991  路  3Comments

tpiros picture tpiros  路  3Comments

haisaco picture haisaco  路  3Comments