当前位置: 首页>>代码示例>>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;未经允许,请勿转载。