Angular Blog | Medium
Follow
The future is standalone!
In Angular v19, the default for components, directives, and pipes will be set to standalone: true, making it easier to write Angular code. This change follows the success of the standalone feature introduced in v14, which has been widely adopted across the Angular ecosystem. The standalone feature simplifies route-level lazy loading, enables a better composition model for component behavior, and allows for the lazy loading of components and directives at the template level. Existing standalone components will have standalone: true removed as part of the ng update for v19, while existing NgModule components will have standalone: false added to ensure they continue to work. The strictStandalone compiler option can be set to enforce that only standalone components are written in an application. Nothing will change for FormsModule and other npm libraries with NgModules, and standalone components can continue to import NgModule dependencies as needed. Library authors do not need to make any changes, as their components will behave correctly when imported by users regardless of the version.