From the course: Learning the Angular CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating new code with schematics

Creating new code with schematics - Angular Tutorial

From the course: Learning the Angular CLI

Start my 1-month free trial

Creating new code with schematics

- [Instructor] Now that we have learned how to create new Angular applications and serving them for development, we will learn now how to easily create Angular application code using the schematics from the Angular CLI. What do I mean by schematics? With the CLI, you can generate the different entities used for building your application. In your terminal, type in ng generate --help. When generating a file based on a specific schematic, your command will follow the following template, ng generate, the schematic name, and then the options. You will be able to easily generate components, directives, services, pipes, models and interfaces, route guards, and modules. We'll be learning how to use these schematics to generate application code.

Contents