Quiz: Service, HttpClientModule, and Dependency Injection

Test your knowledge of Angular service, HttpClientModule, and dependency injection.

1

Which command is used to generate a service in Angular?

A)
ng generate services <service-name>
B)
ng generate --service <service-name>
C)
ng g @service <service-name>
D)
ng generate service <service-name>
Question 1 of 80 attempted

Get hands-on with 1400+ tech skills courses.