Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created July 5, 2017 14:52
Show Gist options
  • Save matthieu-D/0a501c0c8baa822911026a949e09d618 to your computer and use it in GitHub Desktop.
Save matthieu-D/0a501c0c8baa822911026a949e09d618 to your computer and use it in GitHub Desktop.
import { AngularFireDatabase, FirebaseListObservable} from 'angularfire2/database';
export class HomePage {
tasks: FirebaseListObservable<any[]>;
constructor(public db: AngularFireDatabase) {
this.tasks = db.list('/tasks');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment