in my code am adding database module also …but still it give me error "No Provider for AngularfireDataBase error "
please check my below code and help me to solve my problem
import { BrowserModule } from ‘@angular/platform-browser’;
import { ErrorHandler, NgModule } from ‘@angular/core’;
import { IonicApp, IonicErrorHandler, IonicModule } from ‘ionic-angular’;
import { SplashScreen } from ‘@ionic-native/splash-screen’;
import { StatusBar } from ‘@ionic-native/status-bar’;
import { Injectable } from ‘@angular/core’;
import { AngularFireModule } from ‘angularfire2’;
import { AngularFireDatabaseModule } from ‘angularfire2/database-deprecated’;
//import { AngularFireDatabase, FirebaseListObservable } from “angularfire2/database-deprecated”
import { FIREBASE_CREDENTIALS} from ‘./firebase.credentials’;
import { MyApp } from ‘./app.component’;
import { ShoppingListPage } from ‘…/pages/shopping-list/shopping-list’;
import { AddShoppingPage } from ‘…/pages/add-shopping/add-shopping’;
import { EditShoppingItemPage } from ‘…/pages/edit-shopping-item/edit-shopping-item’;
@NgModule({
declarations: [
MyApp,
ShoppingListPage,
AddShoppingPage,
EditShoppingItemPage
],
imports: [
BrowserModule,
AngularFireDatabaseModule,
//AngularFireDatabase,
//Initialize AngularFire with credentials
AngularFireModule.initializeApp(config),
IonicModule.forRoot(MyApp),
//Import AngularFireDatabaseModule to use database
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
ShoppingListPage,
AddShoppingPage,
EditShoppingItemPage
],
providers: [
StatusBar,
SplashScreen,
AngularFireDatabaseModule,
// AngularFireDatabase,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}
please help me