OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » Angular Developer Quiz

Which command in Angular CLI generates a new service?

Difficulty level
  • ng add service
  • ng create service
  • ng generate service
  • ng new service
The correct command for generating a new service in Angular CLI is ng generate service. Services are used to encapsulate and share logic and data across different parts of your Angular application.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
Angular Developer Quiz
Quiz
How can you pre-fetch a lazily loaded module so that it's immediately available when the user needs it?
You are working on a large enterprise application where state management becomes essential. Which library would you consider integrating with Angular for this purpose?

Related Quiz

  • If a parent component needs to send data to a child component, which property decorator should be used?
  • Which directive in Angular is used to add or remove an element from the DOM based on a condition?
  • For a form control that has both synchronous and asynchronous validators, how does Angular handle validation?
  • When the ViewEncapsulation.Emulated mode is used, Angular adds unique ________ to styles to achieve scoped styling.
  • The HttpClient method used to send data to the server as a POST request is ________.

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

PHP QuizMachine Learning QuizReact.js QuizCyber Security QuizPython QuizNode.js QuizASP.NET Core QuizData Science Statistics QuizCSS QuizADO.NET QuizCheckpoint QuizServlet QuizData Modelling QuizAPI Testing QuizDatabase Testing QuizBootstrap QuizAlgorithm QuizComputer Science QuizCommvault QuizJCL Quiz
Copyright © 2025 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy