-
-
Save amandeepmittal/d4af2141f5bc2fb4e4a56b17c6c70cf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
@Injectable() | |
export class TableService { | |
constructor(private http: HttpClient) { } | |
url = 'http://localhost:4000'; | |
getData() { | |
return this | |
.http | |
.get(`${this.url}/employees`); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment