-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.module.ts
More file actions
70 lines (65 loc) · 2.15 KB
/
app.module.ts
File metadata and controls
70 lines (65 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { StuffDetailPage } from './../pages/stuff-detail/stuff-detail';
// NGRX
import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { MainEffects } from './store/mainEffects';
import { mainAppStoreReducer } from '../app/store/mainReducer';
// FORMS
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
// ANGULARFIRE
import { AngularFireModule } from 'angularfire2';
import { AngularFireDatabaseModule } from 'angularfire2/database';
import { AngularFireAuthModule } from 'angularfire2/auth';
import { firebaseProps } from './../environment'
import { InputModalPage } from '../pages/input-modal/input-modal';
// Must export the config, create a file in the /src/environment.ts that
// looks like this..
//
// export const firebaseProps = {
// "apiKey": " ",
// "authDomain": " ",
// "databaseURL": " ",
// "projectId": " ",
// "storageBucket": " ",
// "messagingSenderId": ""
// }
export const firebaseConfig = {
...firebaseProps
};
@NgModule({
imports: [
FormsModule,
ReactiveFormsModule,
AngularFireModule.initializeApp(firebaseConfig),
AngularFireDatabaseModule, // imports firebase/database, only needed for database features
AngularFireAuthModule, // imports firebase/auth, only needed for auth features
StoreModule.forRoot({ app: mainAppStoreReducer }),
EffectsModule.forRoot([MainEffects]),
IonicModule.forRoot(MyApp),
BrowserModule,
StoreDevtoolsModule.instrument()
],
declarations: [
MyApp,
HomePage,
StuffDetailPage,
InputModalPage
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
StuffDetailPage,
InputModalPage
],
providers: [StatusBar, SplashScreen]
})
export class AppModule { }