Skip to content

Instantly share code, notes, and snippets.

@FunnyGhost
Last active March 12, 2019 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FunnyGhost/18fb18f6df296b5b32d3bd0dc36fb611 to your computer and use it in GitHub Desktop.
Save FunnyGhost/18fb18f6df296b5b32d3bd0dc36fb611 to your computer and use it in GitHub Desktop.
ngOnInit() {
this.favoriteMovies$ = this.favoriteMovieService.getFavoriteMovies().pipe(
catchError((error: any) => {
this.error = error;
return of([]);
})
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment