0
I am using version 6 of Angular and found an error when using Observable. It says q the map property does not exist in the Observable type. my code is like this.
import { Observable } from 'rxjs/Observable';
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
extratossaldo():Observable<Extratos[]> {
return this.http.get(`${MEAT_API}/extratos`)
.map(response => response.json());
}
which version of rxjs you are using?
– Eduardo Vargas