Closed vishnu-vv closed 6 years ago
$scope.pick = function($event, showTemplate) { console.log('Button Fired!'); $scope.selectedRange.showTemplate = showTemplate; $mdDateRangePicker.show({ targetEvent: $event, model: $scope.selectedRange }).then(function(result) { if (result) $scope.selectedRange = result; }) };
I think you should remove the property targetEvent: $event from the object, it worked for me.
targetEvent: $event
I think you should remove the property
targetEvent: $event
from the object, it worked for me.