Hi, I’m trying to reuse the umb-editor directive with datepicker view:
controller:
$scope.myvalue = {};
$scope.datepickerModel = {
alias: 'mydatepicker',
view: 'datepicker',
value: $scope.myvalue,
config: {
pickDate: true,
pickTime: false
}
};
$scope.$watch('myvalue', function() {
console.log('** date selected **');
}
view:
<umb-editor model="datepickerModel"></umb-editor>
The editor appears with correct config, but the watch does not trigger when I select a date. What am I missing?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/74161-get-value-back-from-umb-editor