Angular · Junior · Question 52 of 75
What does ng generate component user-card do?
- ✓Correct answer: Creates the component files (class, template, styles, test) with the right naming
- 2Downloads a ready-made component from npm
- 3Registers the component in every route
Explanation
ng generate (or ng g) also creates services, pipes, directives, guards and more, following the project's conventions.