How to generate a class in Angular 7 using CLI?

How to generate a class in Angular 7 using CLI?

Last updated:4/5/2021 3:47:29 AM

1 Answers

Rahul Roi
Rahul Roi

What is Angular CLI?

Where Angular CLI stands for Command Line Interface, which is used to start an Angular app quickly, with minimal setup and without custom configuration. The Angular CLI has a set of commands that create the file from scratch, update the file, create app configuration, and so on. Generally, the most important feature of CLI is that it starts the local web server so as soon as the application’s files are compiled, we can view the output on the default Angular URL ‘localhost:4000’.

npm install -g @angular/cli

or

ng generate class mindstick --type=model

Answer