Created
March 21, 2017 17:49
-
-
Save davideast/cd107f274976c88e993e1fa007632923 to your computer and use it in GitHub Desktop.
Firebase ES2015 imports
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 * as firebase from 'firebase/app'; // Provides firebase-app.js only | |
import 'firebase/auth'; // Not named, just naked | |
const app = firebase.initializeApp({ }); | |
console.log(app.auth()); // auth object | |
console.log(app.database()); // undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment