I can get AngularJS data show correctly in kendo popup window. But when I change the controller and scope data, it still show the old data. I use alert and found the scope data is correct before showing the popup window. I want to share the same popup kendo window across different controller as their interface are the same. What did I miss?
function popupMonths() {
$scope.$apply();
alert($scope.selectedItemName); <<< correct data show in here
$("#winAddMths").kendoWindow({
width: "430px",
height: "200px",
modal: true,
draggable: true,
resizable: false,
title: "Apply to Selected Months"
});
$("#winAddMths").data("kendoWindow").center().open(); <<< open but with previous data
}
function popupMonths() {
$scope.$apply();
alert($scope.selectedItemName); <<< correct data show in here
$("#winAddMths").kendoWindow({
width: "430px",
height: "200px",
modal: true,
draggable: true,
resizable: false,
title: "Apply to Selected Months"
});
$("#winAddMths").data("kendoWindow").center().open(); <<< open but with previous data
}