Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gianpaj/angularfire2

Repository files navigation

AngularFire

The official library for Firebase and Angular

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

Status: Release candidate

What is AngularFire?

  • Observable based - Use the power of RxJS, Angular, and Firebase.
  • Realtime bindings - Synchronize data in reatime.
  • Authentication - Log users in with a variety of providers and monitor authentication state in realtime.
  • ngrx friendly - Integrate with ngrx using AngularFire's action based APIs.

Quick links

Contributing

Stackblitz Template - Remember to set your Firebase configuration in app/app.module.ts.

Upgrading to v5.0? Check out our guide.

Install

npm install firebase angularfire2 --save

Example use:

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

Developer Guide

Getting started

AngularFireDatabase

AngularFireAuth

Deploy to Firebase Hosting

Ionic

About

The official Angular library for Firebase.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.1%
  • JavaScript 2.4%
  • Other 0.5%

AltStyle によって変換されたページ (->オリジナル) /