Check out example codes for "Angular observable". It will help you in understanding the concepts better.

Code Example 1

angular subscribe

Code Example 2

return this.http.get('url' + params).pipe(
        map((response: any) => {
          //adjust data before return
          return response; 
        })
      );
// Will return an observable that one can subscribe off of

Learn ReactJs, React Native from akashmittal.com