Skip to content

Instantly share code, notes, and snippets.

@gmerabishvili
Last active October 5, 2019 20:46
Show Gist options
  • Save gmerabishvili/61e9008c73d7ae3fd7294c02ffd31dde to your computer and use it in GitHub Desktop.
Save gmerabishvili/61e9008c73d7ae3fd7294c02ffd31dde to your computer and use it in GitHub Desktop.
Audio player app
@Injectable()
export class ApiService {
private artistUrl = 'api/artists';
artists$ = this._http.get<Artist[]>(this.artistUrl)
.pipe(
catchError(this.handleError)
);
constructor(private _http: HttpClient) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment