I\'m following a tutorial in Portuguese that teaches how to build your first Ionic application.
After installing npm, node.js, angular, Ionic and Cordova using last vers
SOLUTION: HTTP_PROVIDERS were removed from angular2 and were replaced by: HttpModule.
All I had to do was add:
import { HttpModule } from '@angular/http';
To src/app/app.module.ts and then:
imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(MyApp)
],
And done. Thank you so much for everyone.
Use the below code
import {HTTP_PROVIDERS} from '@angular/http';
provider : [ HTTP_PROVIDERS, ....
]
The above answer was deprecated since angular4. However As I said in the comment,
import { HttpModule } from '@angular/http';
imports: [ HttpModule ]