Skip to content

Instantly share code, notes, and snippets.

@clintonyeb
Created May 19, 2020 02:43
Show Gist options
  • Save clintonyeb/c627f46571eac983888ef071efb81971 to your computer and use it in GitHub Desktop.
Save clintonyeb/c627f46571eac983888ef071efb81971 to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class AppService {
constructor(private http: HttpClient) {}
getRecords(): Observable<any> {
return this.http.get('https://restsimulator.coderiq.io/orders');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment