New features in the Angular framework
The world of web development is evolving rapidly, and because of that, frameworks such as Angular have to keep growing to stay relevant. In this section, we will explore what’s new in the Angular framework and why these changes are being made.
Standalone components
In Angular version 14, standalone components were introduced as a developer’s preview; version 15 released them for production usage. The Angular team introduced standalone components to simplify how we build Angular applications. Before standalone components, everything had to be declared in ngModules. Many developers dislike ngModules, and errors related to ngModules can be hard to resolve.
With standalone components, you can build applications without ngModules. Components, directives, and pipes can be marked as standalone, and then they don’t have to be declared in an ngModule.
In Chapter 1, we made Nx generators for libraries and applications and...