A
A
Andrew2016-05-18 23:18:06
Angular
Andrew, 2016-05-18 23:18:06

Why does the filter not work immediately?

Added a datepicker, hung a change of variables in the scope on the change event. When dates change, this event occurs (can be seen in the console). But for some reason, the filter event occurs only after a click outside the datepicker, and even then not always (you can also look in the console).
Here is the code: https://jsfiddle.net/t3jzedta/3/
Why is that?
ps datepicker with interval selection

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-05-19
Protko @Fesor

Google how change tracking works in Angular (Angular digest cycle).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question