OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

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

Which Angular CLI command is used to generate a new component?

Difficulty level
  • ng create component
  • ng generate component
  • ng make component
  • ng new component
To generate a new component in Angular using the CLI, you use the ng generate component command.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
Angular Quiz
Quiz
Which testing tool is commonly used for performing E2E tests in Angular applications?
In an Angular application, how can you optimize a component to be checked only once by Angular's change detection mechanism?

Related Quiz

  • You are building a form where certain fields need to be shown or hidden based on the selection of a dropdown. How can you dynamically add or remove validations on these fields based on their visibility?
  • In Angular, you can group together multiple form controls into a single logical unit using _____ .
  • To guard a route against unauthorized access, you can implement a custom class that implements the _____ interface.
  • To test directives with dependencies, Angular provides the _______ class which allows you to inject dependencies and spy on their usage.
  • Which file in an Angular component contains metadata and helps Angular understand how to process a class?

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