本文整理汇总了TypeScript中ng-dialog.IDialogService类的典型用法代码示例。如果您正苦于以下问题:TypeScript IDialogService类的具体用法?TypeScript IDialogService怎么用?TypeScript IDialogService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IDialogService类的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);
};