AngularJS - jQuery UI datepicker with alternative input not firing ng-model -


i'm using jquery ui datepicker, alternative input.

so, when selecting date calendar, inputs value set jquery.

the value being updated in input, ng-model not updating.

<input type="text" name="date"  ng-model="user.date" /> 

try

.trigger('input');

ngmodel listens input event, make work have fire event .

$('input[name="date"]').trigger('input'); 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -