Issue with Parent Child Scope With Modal: Using angular ui router with angular bootstrap modal ($uibModal)
问题 Here is my current code: Parent Controller vm.animationsEnabled = true; vm.open = function (size) { var modalInstance = $uibModal.open({ animation: vm.animationsEnabled, templateUrl: 'app/entities/interview-stage/interview-stage-list-add-dialog.html', controller: 'InterviewStageListAddDialogController', controllerAs: 'vm', size: 'cs', }); modalInstance.result.then(function (selectedItem) { vm.interviewPlanSetUp.push(selectedItem); }, function () { //$log.info('Modal dismissed at: ' + new Date