function applyDate(e) {
angularHelper.safeApply($scope, function () {
// when a date is changed, update the model
var elementData = $element.find("div:first").data().DateTimePicker;
if (e.localDate) {
$scope.dateValue = e.localDate.toString("YYYY-MM-DD");
}
console.log($scope.dateValue)
elementData.setValue($scope.dateValue);
});
}
When the value is changed using the popup my match.matchDate isn't changed, but when I change the value manually it is changed
datetimepicker databinding problem
Hi
I have created a Datetimepicker and I have problems getting my values back from the controller
My markup is
and I have this in my controller
When the value is changed using the popup my match.matchDate isn't changed, but when I change the value manually it is changed
Any hints?
/Paul S
Hi Changed it to use the simpledatepicker and now it works
https://gist.github.com/jamiepollock/ad1d1be07453cd1d7509
/Paul S
is working on a reply...