Christopher Kachurick has over 17 years of experience in the plastics engineering industry. Christopher began their career in 2003 as a Mold Designer at Kincaid Plastics Inc., where they were later promoted to the role of Director of Engineering. In 2014, Christopher moved to Seaway Plastics Engineering, Inc., where they currently serve as a Manufacturing Engineer.
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class UserService {
constructor(private http: HttpClient) { }
getUsers(): Observable<any> {
return this.http.get('http://localhost:3000/users');
}
getUserById(id): Observable<any> {
return this.http.get(`http://localhost:3000/users/${id}`);
}
addUser(user): Observable<any> {
return this.http.post('http://localhost:3000/users', user);
}
updateUser(user): Observable<any> {
return this.http.put(`http://localhost:3000/users/${user.id}`, user);
}
deleteUser(id): Observable<any> {
return this.http.delete(`http://localhost:3000/users/${id}`);
}
}
Sign up to view 0 direct reports
Get started