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


TypeScript JhiLanguageService.setLocations方法代碼示例

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


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

示例1: constructor

 constructor(
     private eventManager: EventManager,
     private jhiLanguageService: JhiLanguageService,
     private alertService: AlertService,
     private productService: ProductService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['product']);
     this.jhiLanguageService.setLocations(['productOption']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:10,代碼來源:product-sku.component.ts

示例2: constructor

 constructor(
     public activeModal: NgbActiveModal,
     private eventManager: EventManager,
     private jhiLanguageService: JhiLanguageService,
     private alertService: AlertService,
     private productService: ProductService,
     private dataUtils: DataUtils,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['product']);
     this.jhiLanguageService.setLocations(['productOption']);
     this.isSaving = false;
     this.optionIds = new Array();
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:14,代碼來源:product-option.component.ts

示例3: constructor

 constructor(
     private eventManager: EventManager,
     private jhiLanguageService: JhiLanguageService,
     private alertService: AlertService,
     private productService: ProductService,
     private attachmentService: AttachmentService,
     private dataUtils: DataUtils,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['product']);
     this.jhiLanguageService.setLocations(['attachment']);
     this.isSaving = false;
 
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:14,代碼來源:product-attachment.component.ts

示例4: constructor

 constructor(
     private route: ActivatedRoute,
     private jhiLanguageService: JhiLanguageService,
     private loginModalService: LoginModalService
 ) {
     this.jhiLanguageService.setLocations(['social']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:7,代碼來源:social-register.component.ts

示例5: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private userService: UserService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['user-management']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:7,代碼來源:user-management-detail.component.ts

示例6: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private sessionsService: SessionsService,
     private principal: Principal
 ) {
     this.jhiLanguageService.setLocations(['sessions']);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:7,代碼來源:sessions.component.ts

示例7: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private commentService: CommentService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['comment']);
 }
開發者ID:Anuj28282828,項目名稱:tutorials,代碼行數:7,代碼來源:comment-detail.component.ts

示例8: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private postService: PostService,
     private route: ActivatedRoute
 ) {
     this.jhiLanguageService.setLocations(['post']);
 }
開發者ID:Anuj28282828,項目名稱:tutorials,代碼行數:7,代碼來源:post-detail.component.ts

示例9: constructor

 constructor(
     private jhiLanguageService: JhiLanguageService,
     private passwordService: Password,
     private principal: Principal
 ) {
     this.jhiLanguageService.setLocations(['password']);
 }
開發者ID:Anuj28282828,項目名稱:tutorials,代碼行數:7,代碼來源:password.component.ts

示例10: ngOnInit

 ngOnInit() {
     this.languageService.setLocations(['social', 'register', 'login', 'home']);
     this.label = this.provider.charAt(0).toUpperCase() + this.provider.slice(1);
     this.providerSetting = this.socialService.getProviderSetting(this.provider);
     this.providerURL = this.socialService.getProviderURL(this.provider);
     this.csrf = this.csrfService.getCSRF();
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:7,代碼來源:social.component.ts


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