Property 'filter' does not exist on type 'Observable<Event>'.

来源:3-9 改造股票管理应用

iqianbaidu

2018-10-06

/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run start --scripts-prepend-node-path=auto

auction@0.0.0 start /Users/amos/Documents/ngdemo/auction
ng serve

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Date: 2018-10-06T07:51:46.492Z
Hash: c42bd69991c9b52c54eb
Time: 6399ms
ERROR in src/app/content/content.component.ts(18,8): error TS2339: Property ‘filter’ does not exist on type ‘Observable’.

写回答

1回答

JoJo

2018-10-09

content.component.ts的18行写的有问题,代码贴一下看看

0
0

Angular4.0从入门到实战 打造股票管理网站

Angular新特性,教你熟练使用 Angular 和 Typescript 开发组件式单页应用

2683 学习 · 1361 问题

查看课程