less than 1 minute read

Angular 14 enables the possibility to use standalone components without declaring them on a NgModule. This functionality is used for rendering components within a parent component and for lazily loading a standalone component on a route instead of a routing module.

Standalone feature works with all declarations (pipes, directives and components).

Beginning with Angular 14, standalone components are available as a developer preview. Additionally, they are not compatible with previous versions of Angular. In order for your project to make use of standalone components, it would be necessary to upgrade to the latest version.

If you are interested in experimenting with an Angular 14 project, simply open a terminal and run the following command:

npm install @angular/cli --global