本文整理匯總了TypeScript中ng-dialog.IDialogService.closeAll方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript IDialogService.closeAll方法的具體用法?TypeScript IDialogService.closeAll怎麽用?TypeScript IDialogService.closeAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ng-dialog.IDialogService
的用法示例。
在下文中一共展示了IDialogService.closeAll方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: editLoadout
vm.editLoadout = function editLoadout(loadout: Loadout) {
ngDialog.closeAll();
$rootScope.$broadcast('dim-edit-loadout', {
loadout,
showClass: true
});
};
示例2: startFarming
vm.startFarming = function startFarming() {
ngDialog.closeAll();
(vm.store.destinyVersion === 2 ? D2FarmingService : dimFarmingService).start({
membershipId: $stateParams.membershipId,
platformType: $stateParams.platformType
}, vm.store.id);
};
示例3: applyLoadout
vm.applyLoadout = function applyLoadout(loadout, $event, filterToEquipped) {
$event.preventDefault();
ngDialog.closeAll();
dimFarmingService.stop();
D2FarmingService.stop();
if (filterToEquipped) {
loadout = filterLoadoutToEquipped(loadout);
}
dimLoadoutService.applyLoadout(vm.store, loadout, true).then(() => {
vm.previousLoadout = _.last(dimLoadoutService.previousLoadouts[vm.store.id]);
});
};
示例4: newLoadoutFromEquipped
vm.newLoadoutFromEquipped = function newLoadoutFromEquipped($event: IAngularEvent) {
ngDialog.closeAll();
const loadout = filterLoadoutToEquipped(vm.store.loadoutFromCurrentlyEquipped(""));
// We don't want to prepopulate the loadout with a bunch of cosmetic junk
// like emblems and ships and horns.
loadout.items = _.pick(loadout.items,
'class',
'kinetic',
'energy',
'power',
'primary',
'special',
'heavy',
'helmet',
'gauntlets',
'chest',
'leg',
'classitem',
'artifact',
'ghost');
loadout.classType = vm.classTypeId;
vm.editLoadout(loadout, $event);
};
示例5: queueAction
vm.pullFromPostmaster = () => {
ngDialog.closeAll();
return queueAction(() => pullFromPostmaster(vm.store, dimItemService, toaster));
};
示例6: newLoadout
vm.newLoadout = function newLoadout($event: IAngularEvent) {
ngDialog.closeAll();
vm.editLoadout({}, $event);
};