Tags: TiVoMaker/angularfire2-offline
Tags
feat(core): support writing to Firebase offline
BREAKING CHANGE: new names for observables and primitives can only be accessed using `$value`
Before:
items: ListObservable<any[]>;
object: ObjectObservable<any>;
this.afo.database.list('/primative').subscribe(object => {
console.log(object);
});
After:
items: AfoListObservable<any[]>;
object: AfoObjectObservable<any>;
this.afo.database.list('/primative').subscribe(object => {
console.log(object.$value);
});
feat(index): remove forRoot method from @NgModule BREAKING CHANGE: @NgModule no longer has a `.forRoot` method. To migrate the your @NgModule code follow the example below: Before: imports: [ AngularFireModule.initializeApp(firebaseConfig), AngularFireOfflineModule.forRoot(), BrowserModule ], After: imports: [ AngularFireModule.initializeApp(firebaseConfig), AngularFireOfflineModule, BrowserModule ], Allows the module consumer to not be concerned with the issue of instantiating multiple instances of the same service.
PreviousNext