我认为这可能与映射有关,我不知道该如何做。
顺便说一句,我想使用HttpClient,而不是Http,映射应该通过使用get(“api/ want”)自动完成;语法,对吗?Error TS2322 (TS) Type 'Observable<Product[]>' is not assignable to type 'Product[]'.Property 'includes' is missing in type 'Observable<
我非常习惯于在.NET和Java中使用RX,我希望能够做到以下几点: .map(...).subscribe(...);Uncaught TypeError: Rx.Observable.fromCallback(websocket.onmessage).mapis not a function
这似乎表明fromCallback没有返回一个可观察到的。