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';
00 -
接灰的电子产品
2019-06-28
是 subscribe
022019-06-28
Angular打造企业级协作平台,让你在Angular领域中出类拔萃
全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用
998 学习 · 536 问题
相似问题
dialog报错
回答 3