How to generate a class in Angular 7 using CLI?

devquora
devquora

Posted On: Feb 22, 2018

 

Create a class in ANgular 7 using below code:

ng generate class <name> [options]

ng g class <name> [options]

Where name refers to the name of a class.

Options refer to the project name, spec value in Boolean or type of a file

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Angular 7 Interview Questions

    What's new in Angular 7?

    Angular Elements is enabled to support content projection with the help of web standards for custom elements...

    Angular 7 Interview Questions

    What is IVY Renderer? Is it supported by Angular 7?

    Angular will be releasing a new kind of rendering pipeline and view engine...

    Angular 7 Interview Questions

    What are the Core Dependencies of Angular 7?

    Core DependenciesThere are two types of core dependencies: RxJS and TypeScript...