Commit 2a110ad5 authored by abbasmortezavifar's avatar abbasmortezavifar
Browse files

add input

parent d6471955
......@@ -37,7 +37,10 @@ export class ServerService {
let url: string = 'http://127.0.0.1:8000/api/chenge/' + id;
return this.http.get<iSick[]>(url).pipe(catchError(this.showError));
}
srhItem(value:string) {
let url: string = 'http://127.0.0.1:8000/api/serch/' + value;
return this.http.get<iSick[]>(url).pipe(catchError(this.showError));
}
showError(errorResponse: HttpErrorResponse) {
if (errorResponse.error instanceof ErrorEvent) {
console.error('client side error', errorResponse.error.message);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment