From b80a4e51e592532cd4d408ca1eb34e923a796c8d Mon Sep 17 00:00:00 2001 From: SpiralOut Date: Mon, 18 Sep 2017 10:11:54 +0300 Subject: [PATCH 1/2] Add 'AngularFireDatabase' into providers AngularFireDatabase should be declared into providers section in app.module in order to be used by components --- docs/Auth-with-Ionic3-Angular4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Auth-with-Ionic3-Angular4.md b/docs/Auth-with-Ionic3-Angular4.md index affa64158..35c51df23 100644 --- a/docs/Auth-with-Ionic3-Angular4.md +++ b/docs/Auth-with-Ionic3-Angular4.md @@ -231,6 +231,7 @@ export const firebaseConfig = { providers: [ StatusBar, SplashScreen, + AngularFireDatabase, {provide: ErrorHandler, useClass: IonicErrorHandler} ] }) From df2d5c8eaebbd64a8cdc82f62cd994cf1da8cc3e Mon Sep 17 00:00:00 2001 From: SpiralOut Date: Mon, 18 Sep 2017 10:55:40 +0300 Subject: [PATCH 2/2] Update auth-with-ionic3-angular4.md instructions Update instructions so that they reflect the code below --- docs/Auth-with-Ionic3-Angular4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Auth-with-Ionic3-Angular4.md b/docs/Auth-with-Ionic3-Angular4.md index 35c51df23..137a3781a 100644 --- a/docs/Auth-with-Ionic3-Angular4.md +++ b/docs/Auth-with-Ionic3-Angular4.md @@ -182,9 +182,9 @@ and add the following three entries. >2) Define your firebaseConfig constant. ->3) Initialize your app, by adding AngularFireModule in the "imports" array in @NgModule +>3) Initialize your app, by adding AngularFireModule and AngularFireAuthModule in the "imports" array in @NgModule ->3) Also, add AngularFireDatabaseModule in the "imports" array in @NgModule +>4) Also, add AngularFireDatabase in the "providers" array in @NgModule your `app.module.ts` file should look something like this.