Socket
Book a DemoInstallSign in
Socket

firebase-thermite-ng

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-thermite-ng

Firebase RxJS observables for Angular

latest
Source
npmnpm
Version
2.0.4
Version published
Maintainers
1
Created
Source

firebase-thermite-ng

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.

Usage

import {
  ThermiteAuthModule,
  ThermiteDatabaseModule,
  ThermiteModule
} from "firebase-thermite-ng";

@NgModule({
  bootstrap: [
    AppComponent
  ],
  imports: [
    ...
    ThermiteModule.initializeApp({
      apiKey: "...",
      authDomain: "...",
      databaseURL: "...",
      messagingSenderId: "...",
      storageBucket: "..."
    }),
    ThermiteAuthModule,
    ThermiteDatabaseModule
  ]
})
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.

Keywords

firebase

FAQs

Package last updated on 23 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts