Permalink
Browse files

configure firebase.config

  • Loading branch information...
adash333 committed Sep 30, 2018
1 parent 67451b0 commit 0ddb774a75ddf43a36461268c4634b7e616726a5
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/app/app.component.ts
View
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';
import { Plugins } from '@capacitor/core';
//import { SplashScreen } from '@ionic-native/splash-screen/ngx';
//import { StatusBar } from '@ionic-native/status-bar/ngx';
import * as firebase from 'firebase/app';
import { environment } from '../environments/environment';
const { SplashScreen, StatusBar } = Plugins;
@Component({
@@ -11,14 +12,14 @@ const { SplashScreen, StatusBar } = Plugins;
})
export class AppComponent {
constructor(
private platform: Platform,
//private splashScreen: SplashScreen,
//private statusBar: StatusBar
private platform: Platform
) {
this.initializeApp();
}
initializeApp() {
firebase.initializeApp(environment.config);
SplashScreen.hide().catch(error => {
console.error(error);
});

0 comments on commit 0ddb774

Please sign in to comment.