Created
July 5, 2017 14:52
-
-
Save matthieu-D/0a501c0c8baa822911026a949e09d618 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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