I am using the rest api to get the data. For that i am giving the hardcoded url. How to remove this one?
Here is service.ts :-
getAllEmployees(): Observable<Employee[]>{
return this._httpService.get("http://localhost:8080/EmpProject/getAllEmployees")
.map((response: Response) => response.json())
.catch(this.handleError);
}
I wan to remove this http://localhost:8080 hardcode value.