consultar ( opcion: string, articulo: Articulo ): Observable<Date[]> {
return this.http.get<Date[]>( this.rootUrl "consultar?opcion=" opcion, articulo );
}
PROBLEM: Type 'Observable' is not assignable to type 'Observable<Date[]>'. Type 'ArrayBuffer' is missing the following properties from type 'Date[]': length, pop, push, concat, and 27 more.
CodePudding user response:
The second parameter in get should be options, but you are probably passing it data.