Skip to content

Instantly share code, notes, and snippets.

@clintonyeb
Created May 19, 2020 02:57
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 clintonyeb/26c48448a15a7ca2bb54cd442050ef27 to your computer and use it in GitHub Desktop.
Save clintonyeb/26c48448a15a7ca2bb54cd442050ef27 to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class AppService {
constructor(private http: HttpClient) { }
getCcyPair() {
return this.http.get('https://restsimulator.coderiq.io/currency_pairs');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment