A

Admin • 825.56K Points
Coach

Q. Which Angular CLI command is used to add a new service?

  • (A) ng add service
  • (B) ng generate service
  • (C) ng service create
  • (D) ng make service
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
`ng generate service` creates a new service class and injects metadata automatically.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.