What is the method for creating a new component in Angular?
In Angular, you can create a new component using Angular CLI (Command Line Interface). You can use the following command to create a new component:
ng generate component component-name
component-name is the name you want to give to the component. This command will automatically generate the component file in the specified directory and create all related code (including template, styles, and test files).