Which Angular CLI command is used to generate a new component?
- 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.
Loading...
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?