Socket
Socket
Sign inDemoInstall

angularfire2-exp

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angularfire2-exp

The core module


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

AngularFire2

The official library for Firebase and Angular 2

Build Status Join the chat at https://gitter.im/angular/angularfire2

Status: Release candidate

What is AngularFire2?

  • Observable based - Use the power of rxjs, Angular 2, and Firebase.
  • Realtime bindings - Synchronize database collections as objects or lists.
  • Authentication - Monitor authentication state in realtime.

Contributing

Plunker Template - Requires to set your Firebase credentials in app.module.ts.

Upgrading to v4.0? Check out our guide.

Install

npm install firebase angularfire2 --save

Example use:

import {Component} from '@angular/core';
import {AngularFireDatabase, FirebaseListObservable} from 'angularfire2/database';

@Component({
  selector: 'project-name-app',
  template: `
  <ul>
    <li *ngFor="let item of items | async">
      {{ item.name }}
    </li>
  </ul>
  `
})
export class MyApp {
  items: FirebaseListObservable<any[]>;
  constructor(db: AngularFireDatabase) {
    this.items = db.list('/items');
  }
}

Developer Guide

If you want to get started quickly on building with AngularFire2, check out our 5 step developer guide that will teach you everything you need to know to be productive with AngularFire2.

  1. Installation & Setup
  2. Retrieving data as objects - FirebaseObjectObservable
  3. Retrieving data as lists - FirebaseListObservable
  4. Querying lists
  5. User Authentication - FirebaseAuthentication
  6. Using AngularFire2 with Ionic 2
  7. Using AngularFire2 with Ionic 3 and Angular 4
  8. Deploying AngularFire2 to FirebaseHosting

Keywords

FAQs

Last updated on 16 Sep 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc