@pmartinez1929 wrote:
I have a problem calling a provider into a page,
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';import { ProviderLlantasProvider } from '../../providers/provider-llantas/provider-llantas';
export class SectionPage {
constructor(private appData:ProviderLlantasProvider) {
}}
The provider is declared in the app.module
@NgModule({
declarations: [
MyApp,
HomePage,
ListPage,
SectionPage
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp),
HttpModule
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
ListPage
],
providers: [
StatusBar,
SplashScreen,
ProviderLlantasProvider,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}But, when i put in any page I have this error
Posts: 1
Participants: 1