import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, throwError } from 'rxjs'; import { catchError, retry } from 'rxjs/operators'; import {Location, LocationStrategy, PathLocationStrategy} from '@angular/common'; @Injectable({ providedIn: 'root' }) export class ApiService { location: Location; apiURL='http://207.38.84.105/CT/api'; constructor(private http: HttpClient,location: Location){ this.location = location; } Login(data){ return this.http.post(this.apiURL + '/loginCT.php',data) .pipe( retry(1), catchError(this.handleError) ) } queryCandidateget(data){ return this.http.post(this.apiURL + '/queryCandidateget.php',data) .pipe( retry(1), catchError(this.handleError) ) } searchInsert(data){ return this.http.post(this.apiURL + '/insertCandidateSearches.php...