Book Image

Angular CLI Recipes [Video]

By : Orestes Carracedo
Book Image

Angular CLI Recipes [Video]

By: Orestes Carracedo

Overview of this book

<p>Angular CLI is a command-line interface tool you can use to initialize, develop, scaffold, and maintain Angular applications. It provides you with boilerplates and therefore saves you time and effort.</p> <p>This course will teach you how to generate an Angular application from scratch within seconds, showing you the tips, tricks, and techniques you need. You will learn all about the CLI, ranging from generating a new app to quickly adding component, directives, modules, services, guards, and other features effortlessly. The command-line interface provided by the Angular team will help you generate your Angular applications more effectively than ever. It will also teach you how to run a development environment, run tests for your project, easily add new features, and keep your dependencies up-to-date.</p> <p>By the end of the course, you'll find a plethora of tips and tricks to improve performance and write better components. You will master using the Angular CLI and generate entire applications from scratch in a matter of seconds.</p> <h1>Style and Approach</h1> <p>This course is full of varied working examples, step-by-step commands, and tips, and is divided into the following sections—intro, setup, code generation, creating your own schematics for repetitive code, running your development server, and making it accessible securely—to teach you about each concept individually and help you learn at your own pace. You'll set up an entire Angular app from scratch within seconds, using all the tips, tricks, and techniques you've learned, and quickly add modules, services, guards, and other features effortlessly.</p> <p>The course includes more advanced topics to provide greater value for the course (libraries, schematics, and i18n/internationalization); these are not available in most Angular CLI courses. The use of the generators has been expanded to explain every single included schematic (12 in total) The overall difficulty level has increased, too; this is no longer a basic course as it deals with deeper topics.</p>
Table of Contents (7 chapters)
Chapter 3
Generating Code
Content Locked
Section 1
Generating Modules
We want to generate modules as fast as possible. In this video you will see how Angular CLI generates them instantly, even adding a custom routing module if we needed. - Run ng generate module name - Review the created file - Review the optional arguments for module generation