import { Component } from '@angular/core';
import { AngularFireDatabase } from 'angularfire2/database';
import { Observable } from 'rxjs/Observable';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
data: FirebaseObjectObservable<any>;
constructor(db: AngularFireDatabase) {
this.data = db.object('data').valueChanges();
}
}
Every time I attempt to compile my code, I encounter the following error message:
Error: Cannot find name 'FirebaseObjectObservable'.
I assumed that this was a part of the angularfire2/database module. What might I be missing?