Skip to content

Commit 892ecd4

Browse files
Splaktardavideast
authored andcommitted
docs(auth): add imports for AuthProviders and AuthMethods (#628)
use AppComponent and AppModule for consistency with other docs
1 parent 0ab7f09 commit 892ecd4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/5-user-authentication.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ To specify your authentication ahead of time, you provide the `AngularFireModule
1111
with an `AuthProvider` and an `AuthMethod`.
1212

1313
```ts
14+
import { BrowserModule } from '@angular/platform-browser';
15+
import { NgModule } from '@angular/core';
16+
import { AppComponent } from './app.component';
17+
import { AngularFireModule, AuthProviders, AuthMethods } from 'angularfire2';
1418

1519
const myFirebaseConfig = {
1620
apiKey: '<your-key>',
@@ -29,10 +33,10 @@ const myFirebaseAuthConfig = {
2933
BrowserModule,
3034
AngularFireModule.initializeApp(myFirebaseConfig, myFirebaseAuthConfig)
3135
],
32-
declarations: [ MyComponent ],
33-
boostrap: [ MyComponent ]
36+
declarations: [ AppComponent ],
37+
bootstrap: [ AppComponent ]
3438
})
35-
export class MyAppModule {}
39+
export class AppModule {}
3640
```
3741

3842

0 commit comments

Comments
 (0)