Question from the Angular - Fundamentals test

How do I call the getUser method in Angular and what does it return?

Easy

Into a file user.ts, what can be told about this function ?

getUser(id: string): User {
  return this.userService.getUser(id);
}
Author: Fabien MacipStatus: PublishedQuestion passed 21 times
Edit
0
Community Evaluations
developer avatar
Dragon parfait
23/08/2024
Hello Fabien ! Je pense que si on veut se passer du return il faut mettre une fonction fléchée