@fabien0102/angularfire2
v2.0.0-beta.7
Published
<p align="center"> <h1 align="center">AngularFire2</h1> <p align="center">The official library for Firebase and Angular 2</p> </p>
Downloads
5
Readme
Status: Beta
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.
Quick links
Plunker Template - Requires to set your Firebase credentials in app.module.ts
.
Install
npm install firebase angularfire2 --save
Example use:
import {Component} from '@angular/core';
import {AngularFire, FirebaseListObservable} from 'angularfire2';
@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(af: AngularFire) {
this.items = af.database.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.