Open ahelord opened 6 years ago
I am trying to pass the parameter of the route to a promise to return the names of the clients but I do not succeed I have tried this
async getNameForUser(id: string):string{ const message = await this.getAsyncName("1"); return message } public async getAsyncName(id: string): Promise<string> { const response = await this.userService.getUserByIdUser(+id) return response.first_name }
I am trying to pass the parameter of the route to a promise to return the names of the clients but I do not succeed I have tried this