This commit is contained in:
2025-08-19 18:44:53 +03:00
parent 95654933ee
commit 5326e545a8
17 changed files with 571 additions and 363 deletions

View File

@@ -0,0 +1,19 @@
import { HttpClient } from "@angular/common/http";
import { inject, Injectable } from "@angular/core";
@Injectable({
providedIn: 'root'
})
export class CandidateDataService {
httpClient = inject(HttpClient)
response: any | null = null;
error: any | null = null;
sendRequest() {
this.httpClient.get('http://localhost:3000/app/candidates').subscribe({
next: (res) => this.response = JSON.stringify(res),
error: err => this.error = JSON.stringify(err)
})
}
}