Created
February 27, 2018 21:39
-
-
Save captaincole/635b9b6377aa1919f7efb6465506a700 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import '@ionic/core'; | |
| import '@stencil/core'; | |
| import { Component, Prop, Listen } from '@stencil/core'; | |
| import { ToastController } from '@ionic/core'; | |
| import { firebaseConfig } from '../../helpers/config'; | |
| import firebase from 'firebase'; | |
| @Component({ | |
| tag: 'my-app', | |
| styleUrl: 'my-app.scss' | |
| }) | |
| export class MyApp { | |
| @Prop({ connect: 'ion-toast-controller' }) toastCtrl: ToastController; | |
| configureFirebase() { | |
| firebase.initializeApp(firebaseConfig); | |
| console.log('Firebase Configured!', firebase); | |
| } | |
| componentWillLoad() { | |
| this.configureFirebase(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment