Created
August 26, 2017 13:06
-
-
Save ajspeller/a8355e51c7f2e2c791bc09cf357bdba1 to your computer and use it in GitHub Desktop.
Revisions
-
ajspeller created this gist
Aug 26, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ private subscription; cuisines; constructor(private _af: AngularFire) {} ngOnit() { this.subscription = this._af .database.list('cuisines') .subscribe( () => { this.cuisines = x; console.log(this.cuisines); }); } ngOnDestroy() { this.subscription.unsubscribe(); }