Skip to content

Instantly share code, notes, and snippets.

@yannbf
Created September 29, 2016 17:59
Show Gist options
  • Save yannbf/ed258e447822dc430f2146731ba6ba87 to your computer and use it in GitHub Desktop.
Save yannbf/ed258e447822dc430f2146731ba6ba87 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { AngularFireModule } from 'angularfire2';
// Must export the config
export const firebaseConfig = {
apiKey: '<your-key>',
authDomain: '<your-project-authdomain>',
databaseURL: '<your-database-URL>',
storageBucket: '<your-storage-bucket>'
};
@NgModule({
declarations: [
MyApp,
HomePage
],
imports: [
IonicModule.forRoot(MyApp),
AngularFireModule.initializeApp(firebaseConfig)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage
],
providers: []
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment