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


TypeScript NgRedux.getState方法代碼示例

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


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

示例1: ngOnInit

  ngOnInit() {
    let options = this.storeId? this.ngRedux.getState()[this.storeId].options : this.ngRedux.getState().options;

    if(options && options[this.option]){
      this.active = true
    }
  }
開發者ID:Arne-Sandberg,項目名稱:HawsIoT-WebApp,代碼行數:7,代碼來源:option-toggle.component.ts

示例2:

        this.streams.subscribe((streamsState: StreamState[]) => {
            console.log(streamsState);
            this.adjustContainer(this.ngRedux.getState().layout, streamsState);

           if (JSON.stringify(this.videoElement) !== JSON.stringify(this.domSanitizer.bypassSecurityTrustHtml(streamsState[this.videoContainerId].playerHtml))) {
                this.videoElement = this.domSanitizer.bypassSecurityTrustHtml(streamsState[this.videoContainerId].playerHtml);
           }
        });
開發者ID:Nightspeller,項目名稱:streamViewer,代碼行數:8,代碼來源:video-container.component.ts

示例3: ladeBilanz

    ladeBilanz() {
        let id = this.store.getState().inventur.inventurId;

        this.query.send(
            QueryType.LeseEroeffnungsbilanz,
            {inventurId: id},
            ResultType.Eroeffnungsbilanz);
    }
開發者ID:haschi,項目名稱:dominium,代碼行數:8,代碼來源:bilanz.service.ts

示例4: beginneInventur

    beginneInventur(id: any) {
        this.command.send(
            CommandType.BeginneInventur,
            {id: id},
            {});

        const state = this.store.getState();
    }
開發者ID:haschi,項目名稱:dominium,代碼行數:8,代碼來源:inventur.service.ts

示例5:

    this.geolocationCoordinates$.subscribe((location: GeoJSON.Position) => {
      this.currentLocation = location;

      // If it is the first view, then set the current center
      if (this.ngRedux.getState().firstView && location) {
        this.center = location;
      }
    });
開發者ID:christinakayastha,項目名稱:parkabler,代碼行數:8,代碼來源:map.component.ts

示例6: leseInventar

    leseInventar() {
        let state = this.store.getState().inventur;
        let id = state.inventurId;

        this.query.send(
            QueryType.LeseInventar,
            {id: id},
            ResultType.Inventar);
    }
開發者ID:haschi,項目名稱:dominium,代碼行數:9,代碼來源:inventur.service.ts

示例7: erfasseInventar

    erfasseInventar(eingabe: InventurEingabe) {
        let id = this.store.getState().inventur.inventurId;

        this.command.send(
            CommandType.ErfasseInventar,
            {id: id, ...eingabe},
            {}
        )
    }
開發者ID:haschi,項目名稱:dominium,代碼行數:9,代碼來源:inventur.service.ts

示例8: state

 protected state(): AppStateModel {
     return this.store.getState();
 }
開發者ID:RCata,項目名稱:Work-Work,代碼行數:3,代碼來源:abstract-service.service.ts


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