本文整理匯總了TypeScript中@shared/session/app-session.service.AppSessionService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.AppSessionService類的具體用法?TypeScript service.AppSessionService怎麽用?TypeScript service.AppSessionService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了service.AppSessionService類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: resolve
AppPreBootstrap.run(() => {
var appSessionService: AppSessionService = injector.get(AppSessionService);
appSessionService.init().then(
(result) => {
abp.ui.clearBusy();
resolve(result);
},
(err) => {
abp.ui.clearBusy();
reject(err);
}
);
});
示例2: setNgZorroLocale
AppPreBootstrap.run(injector, () => {
var appSessionService: AppSessionService = injector.get(AppSessionService);
appSessionService.init().then(
(result) => {
setNgZorroLocale(injector);
preloader();
resolve(result);
},
(err) => {
preloader();
reject(err);
}
);
});
示例3: resolve
AppPreBootstrap.run(() => {
abp.event.trigger('abp.dynamicScriptsInitialized');
const appSessionService: AppSessionService = injector.get(
AppSessionService,
);
appSessionService.init().then(
result => {
abp.ui.clearBusy();
resolve(result);
},
err => {
// abp.ui.clearBusy();
reject(err);
},
);
});
示例4: convertAbpLocaleToAngularLocale
AppPreBootstrap.run(appBaseUrl, () => {
abp.event.trigger('abp.dynamicScriptsInitialized');
const appSessionService: AppSessionService = injector.get(AppSessionService);
appSessionService.init().then(
(result) => {
abp.ui.clearBusy();
if (shouldLoadLocale()) {
const angularLocale = convertAbpLocaleToAngularLocale(abp.localization.currentLanguage.name);
import(`@angular/common/locales/${angularLocale}.js`)
.then(module => {
registerLocaleData(module.default);
resolve(result);
}, reject);
} else {
resolve(result);
}
},
(err) => {
abp.ui.clearBusy();
reject(err);
}
);
});