我想在 jhipster 生成的应用程序中禁用模式对话框,以支持页面中显示的元素。
参见https://github.com/jhipster/generator-jhipster/issues/2693
最佳答案
您应该将其设置为与上面的“-detail”状态一样。制作一个像这样的 block
views: {
'content@': {
templateUrl: 'app/entities/smthn/smthn-dialog.html',
controller: 'SmthnDialogController',
controllerAs: 'vm'
}
},
在data
对象之后并将resolve
移出$uibModal.open
。
然后你的 Controller 发生了一些变化。
使 clear
函数看起来像这样:
function clear () {
$state.go('^');
}
并将 $uibModalInstance.close(result);
替换为 $state.go('smthn', {}, { reload: 'smthn' });
onSaveSuccess
。
关于angularjs - 在 jhipster/Angular ui 中禁用模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40424898/