convert angular HTTP to Native HTTP in Ionic
import { Injectable } from '@angular/core';
import { HTTP } from '@ionic-native/http/ngx';
@Injectable()
export class DataService {
constructor(private nativeHttp: HTTP) {}
getData() {
return this.nativeHttp.get('https://example.com/api/data', {}, {});
}
}