No provider for Http! error in ionic

Gracias @joshmorony call from Agentina!

I saw many people complaining about append would not be working correctly on headers. Try the following:

const headers = new Headers({
  'Accept': 'application/json',
  'Content-Type': 'application/json',
  'Access-Control-Allow-Origin': '*'
});

Continuing the discussion from No provider for Http! error in ionic:

Thank you so muchhh…
it’s work finally…thanks a lott…

Para Ionic 3 esta es la solucion correcta, muchas gracias me sirvio!!! thanks very much

What is wrong in this code?

    const headers = new Headers({
      'Accept': 'application/json',
      'Content-Type': 'application/json',
      'Access-Control-Allow-Origin': '*',
      'Authorization': this.token
    });


    this.api.get("users", {headers: headers}).subscribe((users: any) => {
      this.users = users;
 
    })

Please, help me!

Obtengo el error de:

Error: “StaticInjectorError(AppModule)[RestApiProvider -> HttpHeaders]:
StaticInjectorError(Platform: core)[RestApiProvider -> HttpHeaders]:
NullInjectorError: No provider for HttpHeaders!”![2018-05-07|690x387]
Versiones de cada programa, imagen->
(upload://y3cqlXITU6ImXGPgoLXuW2Tlq87.png)

Ayuda por favor…

(image)

Hi Sir, How to make like this in ionic.

Hi Sir, please help me for , how can do this…

image

in ionic. please help.