获得实例,我通过使用方法情态,如:
this.showModal = function() {
return $uibModal.open({...});
}
,然后在一些方法我调用这个函数:
this.showModal().result.then(function (someResult) {...});
,但我如何使用辞退,使用方法调用?
becouse我使用它没有方法,我可以关闭我的语气如此:
$uibModal.open({...}).result.then(function (someResult) {
this.$dismiss();
})
,但我不知道,如何使用解雇,当我使用方法诺言......
也许有人有一个想法?
'$ dismiss()'可用于模态范围。 –