我尝试从服务订阅一个可观察对象,它构建时没有错误,但在浏览器中查看时收到错误消息"this.service.getBanners(...).subscribe is not a function“。服务:import { Observable } from 'rxjs';
exportclass Banner
ERROR in src/app/services/product.service.ts(15,9): error TS2322: Type 'Observable<Product>' is not assignableto type 'Observable<Product[]>'.import { Effect, Actions, ofType } from '@ngrx/effects';
import { map, switchM