首页 > 解决方案 > 给我的 ngRx 管道无法读取未定义的属性管道

问题描述

#core.js:6479 错误错误:未捕获(承诺中):TypeError:无法读取未定义的属性“管道”类型错误:无法读取未定义的属性“管道”#

import { select, Store } from '@ngrx/store'

constructor(
   private store: Store<any>,
   public myLoaderService: CommonService
  ) {
     this.store.pipe(select(Reducers.getSettings)).subscribe(state => {
      this.menuLayoutType = state.menuLayoutType
      this.isContentNoMaxWidth = state.isContentNoMaxWidth
     }) 
   }

标签: angularpipengrxngrx-storengrx-store-4.0

解决方案


推荐阅读