By using Http, we call a method that does a network call and returns an http observable:
getCustomer() { return
Great answers.
Or you could do this:
This is from latest version of rxjs. I am using 5.5.7 version of RxJS
import {share} from "rxjs/operators"; this.http.get('/someUrl').pipe(share());