error TS2339: Property 'subscript' does not exist on type 'OperatorFunction<{},

来源:3-2 缓动函数和关键帧

DBkey_li

2019-06-28

ngOnInit() {
    const val$ = combineLatest(this.idNo, this.idType, (_no, _type) => {
      return {
        identityType: _type,
        identityNo: _no
      }
    });
    this._sub = val$.subscribe(id => {
      this.propagateChange(id)
    })
  

请问老师subscribe下面老是红线报错(),找不到原因
图片描述
图片描述

写回答

2回答

DBkey_li

提问者

2019-06-28

解决了,我引入错误,应该

import { combineLatest } from 'rxjs';我是

import { combineLatest } from 'rxjs/operators';


0
0

接灰的电子产品

2019-06-28

是 subscribe

0
2
接灰的电子产品
回复
DBkey_li
我加不了你,是慕课网建立的群,你在课程详情页中应该可以看到群号,使用订单号作为验证,申请一下,不清楚找客服
2019-06-28
共2条回复

Angular打造企业级协作平台,让你在Angular领域中出类拔萃

全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用

998 学习 · 536 问题

查看课程