Skip to content

Instantly share code, notes, and snippets.

@FunnyGhost
Last active March 12, 2019 15:13
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/be1b906d370e866687a91d669143a67e to your computer and use it in GitHub Desktop.
Save FunnyGhost/be1b906d370e866687a91d669143a67e to your computer and use it in GitHub Desktop.
export class FavoriteMoviesComponent implements OnInit {
favoriteMovies$: Observable<Movie[]>;
constructor(private favoriteMovieService: FavoriteMoviesService) {}
ngOnInit() {
this.favoriteMovies$ = this.favoriteMovieService.getFavoriteMovies();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment