I'm using version 6 of Angular and found an error when using Observable. It says that 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());
}