Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including firebase-thermite-ng with all npm packages installed. Try it out:

require("@angular/core/package.json"); // @angular/core is a peer dependency. require("firebase/package.json"); // firebase is a peer dependency. require("firebase-thermite/package.json"); // firebase-thermite is a peer dependency. require("rxjs/package.json"); // rxjs is a peer dependency. var firebaseThermiteNg = require("firebase-thermite-ng")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

firebase-thermite-ng v2.0.4

Firebase RxJS observables for Angular


NPM version Build status dependency status devDependency Status peerDependency Status Greenkeeper badge

What is it?

firebase-thermite-ng contains the Angular modules for firebase-thermite - a library of RxJS observables for Firebase.

Why might you need it?

You might need it if the official Angular library for Firebase - AngularFire2 - does not suit your requirements.

How does it differ from AngularFire2?

The differencees between firebase-thermite and AngularFire2 are listed here.

In addition to those, firebase-thermite-ng differs from AngularFire2 in that it ensures subscribers execute within the Angular zone. With AngularFire2, subscribers execute within the zone in which the observable was created.


import {
} from "firebase-thermite-ng";

  bootstrap: [
  imports: [
      apiKey: "...",
      authDomain: "...",
      databaseURL: "...",
      messagingSenderId: "...",
      storageBucket: "..."
class AppModule {}

With the modules imported, ThermiteAuth and ThermiteDatabase are then available for injection into components, etc.

ThermiteAuth implements firebase.auth.Auth and ThermiteDatabase implements firebase.database.Database and both include additional methods that create observables. See auth/auth.ts and database/database.ts in firebase-thermite.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free