Skip to content

Commit 0885173

Browse files
SpiralOutDotEudavideast
authored andcommitted
docs(Auth-with-Ionic3-Angular4) Fix Providers (#1159)
* Add 'AngularFireDatabase' into providers AngularFireDatabase should be declared into providers section in app.module in order to be used by components * Update auth-with-ionic3-angular4.md instructions Update instructions so that they reflect the code below
1 parent 10507aa commit 0885173

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/Auth-with-Ionic3-Angular4.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ and add the following three entries.
182182
183183
>2) Define your firebaseConfig constant.
184184
185-
>3) Initialize your app, by adding AngularFireModule in the "imports" array in @NgModule
185+
>3) Initialize your app, by adding AngularFireModule and AngularFireAuthModule in the "imports" array in @NgModule
186186
187-
>3) Also, add AngularFireDatabaseModule in the "imports" array in @NgModule
187+
>4) Also, add AngularFireDatabase in the "providers" array in @NgModule
188188
189189
your `app.module.ts` file should look something like this.
190190

@@ -231,6 +231,7 @@ export const firebaseConfig = {
231231
providers: [
232232
StatusBar,
233233
SplashScreen,
234+
AngularFireDatabase,
234235
{provide: ErrorHandler, useClass: IonicErrorHandler}
235236
]
236237
})

0 commit comments

Comments
 (0)