<div class="modal-footer">
<button type="submit" ng-click="ok()">YES</button>
<button type="submit" ng-click="reset()">NO</button>
*<button type="submit" ng-click="cancel()">CANCEL</button>*
</div>
modalInstance.result.then(function (selectedItem) {
$scope.selected = selectedItem;
}, function () {
$log.info('Modal dismissed at: ' + new Date());
}
单击是按钮单击,指定selecteditem和NO关闭模式弹出窗口。如果我添加一个新按钮CANCEL,并想要调用另一个函数怎么可能?
中的模态部分一样