diff --git a/docs/rtdb/objects.md b/docs/rtdb/objects.md index 56d7365eb..fab51a914 100644 --- a/docs/rtdb/objects.md +++ b/docs/rtdb/objects.md @@ -58,7 +58,7 @@ import { Observable } from 'rxjs/Observable'; `, }) export class AppComponent { - item: FirebaseObjectObservable; + item: Observable; constructor(db: AngularFireDatabase) { this.item = db.object('item').valueChanges(); } @@ -125,6 +125,7 @@ itemRef.remove(); ```ts import { Component } from '@angular/core'; import { AngularFireDatabase, AngularFireObject } from 'angularfire2/database'; +import { Observable } from 'rxjs/Observable'; @Component({ selector: 'app-root', @@ -140,7 +141,7 @@ import { AngularFireDatabase, AngularFireObject } from 'angularfire2/database'; }) export class AppComponent { itemRef: AngularFireObject; - item: FirebaseObjectObservable; + item: Observable; constructor(db: AngularFireDatabase) { this.itemRef = db.object('item'); this.item = this.itemRef.valueChanges();