Please see the fiddle: https://jsfiddle.net/ThiagoRomam/1hyguh6n/
$scope.setDates = function(initialDate, finalDate) {
$scope.initialDate = initialDate;
$scope.finalDate = finalDate;
$scope.apply();
};
When you press any key in the input or when you click the options (All Time, Today), the apply method is called before the binding can be done.
How can I fix that?
$scope.apply();thereapply()is not$apply:scope: { ... apply: "&fApply" }