async createEmployee(url:string,employee: Employee)
{
return await this.httpClient.post(url, employee).toPromise();
}
getEmployees(url:string)
{
return this.httpClient.get<Employee[]>(url);
}
Created
October 2, 2020 21:00
-
-
Save pavankjadda/34ceacc3473981e0bdeea3bfb6483cce to your computer and use it in GitHub Desktop.
employee.service.ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment