Skip to content

Commit

Permalink
docs(rtdb): reflect 5.0.0 changes and deprecations (angular#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-goosen authored and jamesdaniels committed Feb 21, 2018
1 parent 9278bb5 commit 3d21a6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/rtdb/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import { Observable } from 'rxjs/Observable';
`,
})
export class AppComponent {
item: FirebaseObjectObservable<any>;
item: Observable<any>;
constructor(db: AngularFireDatabase) {
this.item = db.object('item').valueChanges();
}
Expand Down Expand Up @@ -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',
Expand All @@ -140,7 +141,7 @@ import { AngularFireDatabase, AngularFireObject } from 'angularfire2/database';
})
export class AppComponent {
itemRef: AngularFireObject<any>;
item: FirebaseObjectObservable<any>;
item: Observable<any>;
constructor(db: AngularFireDatabase) {
this.itemRef = db.object('item');
this.item = this.itemRef.valueChanges();
Expand Down

0 comments on commit 3d21a6a

Please sign in to comment.