0Pricing
Angular Academy · Lesson

Generating Code with ng generate

Scaffold components, services, and more.

Generating Code with ng generate

The ng generate command (shortened to ng g) scaffolds Angular building blocks with correct boilerplate and naming conventions.

Generating a Component

Create a standalone component with one command.

ng generate component hello
# short form:
ng g component hello

All lessons in this course

  1. Generating a New Project
  2. Project Structure Explained
  3. Generating Code with ng generate
  4. Building and Serving
← Back to Angular Academy