What is the difference between Angular and Native HTTP?


#1

What should I use for most of my http requests? import { Http } from '@angular/http'; or import { HTTP } from 'ionic-native'; ?


#2

I’m working with IONIC over the last few months, what I can say is that ‘@angular/http’ is an implementation of Angular 2 that returns an observables object.

And ionic-native is an implementation of the cordova-plugin-http plugin available at ‘https://github.com/wymsee/cordova-HTTP’ that does not return an observables, it works in the traditional way, if I can use that analogy.

But I believe that using ‘angular/http’ is better because it implements the same code and is more integrated with the structure of Angular 2.