I can't get user id in TS file in Angular
_id: undefined Http failure response for http://localhost:5000/users/undefined
Service File:
UpdateUser(userID:any, data : any){
return this.httpClient.put<User>(`${environment.APIURL}/users/${userID}`,JSON.stringify(data),this.options)
.pipe(map((res:any)=>{
return res
}))
}