Why Standalone Components
See how standalone components simplify Angular.
Why Standalone Components?
Standalone components let you build Angular apps without NgModules. A component declares its own dependencies, making the building blocks self-contained and easier to understand.
The NgModule Era
Traditionally every component, directive, and pipe had to be declared inside an @NgModule. Modules grouped declarations and managed imports/exports.
This added boilerplate and an extra layer of indirection.
All lessons in this course
- Why Standalone Components
- Creating Standalone Components
- Importing Dependencies Directly
- Bootstrapping a Standalone App