Skip to content

Instantly share code, notes, and snippets.

@FunnyGhost
Last active September 12, 2019 13:01
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/4ac0ab1354733bb2f1a1a7b4a94208a9 to your computer and use it in GitHub Desktop.
Save FunnyGhost/4ac0ab1354733bb2f1a1a7b4a94208a9 to your computer and use it in GitHub Desktop.
export class FavoriteMoviesService {
constructor(private http: HttpClient) {}
getFavoriteMovies(): Observable<Movie[]> {
return this.http.get<Movie[]>(environment.favoriteUrl);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment