thanks bro…
thank q sooooo much…
can you provide the code which use have for the provider and app.module.ts here…
Do you run Ionic 2.0 or 3.0?
Yor app.module.ts should look like this in Ionic 3.X
...
import { HttpModule } from '@angular/http';
...
imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(MyApp)
],
And then you can import the Http Module in your provider
import { Http } from '@angular/http';
....
constructor(private http: Http) { }
You can follow my Ionic 3 guide here: Guide: How to update to Ionic 3.X
Component? Not module?
Ups I changed it
Thanks You @joshmorony,
It’s work perfectly after added
import { HttpModule } from ‘@angular/http’;
and
imports: [
** BrowserModule,**
** HttpModule,**
** IonicModule.forRoot(MyApp),**
** IonicStorageModule.forRoot()**
** ],**
thanks for your solution, but after including httpModule am getting below error
Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using ‘barrel’ index.ts files.
Please help me
Thanks, man, you saved my day!
Very Good! Congratulations, all likes the your posts.
Thank Josh, you saved me a ton of time and frustration!
Next drink is on me
thank you very much! saved my life
TY for all your Ionic help… The world is better with this
Thanks alot Yahoooooo <3
Worked!!!
Thank you Josh!
Great men, thanks, it worked for me