Skip to content

Instantly share code, notes, and snippets.

@davideast
Created March 21, 2017 17:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davideast/cd107f274976c88e993e1fa007632923 to your computer and use it in GitHub Desktop.
Save davideast/cd107f274976c88e993e1fa007632923 to your computer and use it in GitHub Desktop.
Firebase ES2015 imports
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