當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ng-jhipster.JhiLanguageService類代碼示例

本文整理匯總了TypeScript中ng-jhipster.JhiLanguageService的典型用法代碼示例。如果您正苦於以下問題:TypeScript JhiLanguageService類的具體用法?TypeScript JhiLanguageService怎麽用?TypeScript JhiLanguageService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了JhiLanguageService類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: constructor

    constructor(
        private jhiLanguageService: JhiLanguageService,
        private modalService: NgbModal,
        private healthService: JhiHealthService
    ) {
        this.jhiLanguageService.setLocations(['health']);

    }
開發者ID:Anuj28282828,項目名稱:tutorials,代碼行數:8,代碼來源:health.component.ts

示例2: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private salesOrderService: SalesOrderService,
     public activeModal: NgbActiveModal,
     private eventManager: EventManager
 ) {
     this.jhiLanguageService.setLocations(['salesOrder', 'paymentType', 'orderChannel', 'orderType', 'orderStatus']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:sales-order-delete-dialog.component.ts

示例3: constructor

 constructor(
     private eventManager: EventManager,
     private jhiLanguageService: JhiLanguageService,
     private shoppingCartService: ShoppingCartService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['shoppingCart']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:shopping-cart-detail.component.ts

示例4: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private postService: PostService,
     public activeModal: NgbActiveModal,
     private eventManager: EventManager
 ) {
     this.jhiLanguageService.setLocations(['post']);
 }
開發者ID:Anuj28282828,項目名稱:tutorials,代碼行數:8,代碼來源:post-delete-dialog.component.ts

示例5: constructor

 constructor(
     private eventManager: EventManager,
     private jhiLanguageService: JhiLanguageService,
     private salesOrderService: SalesOrderService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['salesOrder', 'paymentType', 'orderChannel', 'orderType', 'orderStatus']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:sales-order-detail.component.ts

示例6: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private merchantLogService: MerchantLogService,
     public activeModal: NgbActiveModal,
     private eventManager: EventManager
 ) {
     this.jhiLanguageService.setLocations(['merchantLog']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:merchant-log-delete-dialog.component.ts

示例7: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private fileHistoryService: FileHistoryService,
     public activeModal: NgbActiveModal,
     private eventManager: EventManager
 ) {
     this.jhiLanguageService.setLocations(['fileHistory']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:file-history-delete-dialog.component.ts

示例8: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private systemNotificationService: SystemNotificationService,
     public activeModal: NgbActiveModal,
     private eventManager: EventManager
 ) {
     this.jhiLanguageService.setLocations(['systemNotification']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:system-notification-delete-dialog.component.ts

示例9: constructor

 constructor(
     private eventManager: EventManager,
     private jhiLanguageService: JhiLanguageService,
     private customerService: CustomerService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['customer', 'customerGender']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:8,代碼來源:customer-detail.component.ts

示例10: resolve

 this.principal.identity(true).then(account => {
     // After the login the language will be changed to
     // the language selected by the user during his registration
     if (account !== null) {
         this.languageService.changeLanguage(account.langKey);
     }
     resolve(data);
 });
開發者ID:PierreBesson,項目名稱:jhipster-sample-app,代碼行數:8,代碼來源:login.service.ts


注:本文中的ng-jhipster.JhiLanguageService類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。