Skip to content
Excelsior Technologies
Our Blogsangular
5 min read

A look back: 7 key features from Angular 14

Angular 14 introduced foundational changes like standalone components and typed forms. We look back at these features and explain their lasting impact on how we build modern, maintainable Angular applications today.

Written by
Excelsior Technologies
angulartypescriptweb developmentframeworks

7 Amazing Features of Angular 14

This article was first written to cover the release of Angular 14. While the framework has evolved since, the features introduced in this version were pivotal. They laid the groundwork for the modern, streamlined Angular we use today. This is a technical retrospective on those features and why their impact is still relevant.

Angular 14 was not just an incremental update. It signalled a clear direction for the framework, focusing on reducing boilerplate and improving the developer experience. Let's examine the changes that have had a lasting effect.

The path to a simpler architecture

For years, NgModules were a core, and sometimes complex, part of Angular. They were necessary for organising an application but added a layer of abstraction that could be a hurdle for developers. Angular 14 began the formal process of moving away from this requirement.

Standalone components, directives and pipes

This update introduced a developer preview of standalone components. These are components, directives and pipes that are not declared in an NgModule. You can instead manage their dependencies directly in the component's decorator.

The immediate benefit was a reduction in boilerplate code. For a simple component, you no longer needed to create or update a corresponding module file. This feature, now stable and central to the framework, makes Angular applications easier to structure and simplifies the learning curve for new developers. It was the first major step toward the module-less architecture that is now standard practice.

Improving code quality and safety

Writing safe and maintainable code is a primary concern in any large application. Angular 14 introduced two significant features to help developers catch errors before they reach production.

Strictly typed reactive forms

This was one of the most requested features in Angular's history. Before version 14, all reactive forms had a value of any. This meant you had no type safety, and a simple typo in a formControlName could lead to a runtime error. Angular 14 made the reactive forms classes generic. You could now specify the type of a form's value, for example FormGroup<{name: FormControl<string>}>. This allows the TypeScript compiler to catch a wide range of bugs during development. The trade-off is slightly more verbose code, but the safety it provides is invaluable. The Angular team also provided an automated migration schematic to help update existing projects.

Enhanced template diagnostics

The Angular compiler gained the ability to provide more specific warnings for common mistakes in component templates. For instance, the compiler could detect trivial errors like using a nullish coalescing operator (??) on a type that is not nullable. It also helped catch subtle syntax errors, such as using ([ngModel]) instead of the correct two-way binding syntax [(ngModel)]. These diagnostics reduce debugging time by highlighting potential issues directly in your HTML templates.

A better developer experience

Productivity features can have a large cumulative effect on development speed and accuracy. Angular 14 added several refinements to the daily workflow.

CLI auto-completion

By running ng completion, you could enable real-time command completion in the terminal. When you type ng g c -- and press tab, the CLI now shows you all the possible flags for the generate component command. It is a small change that saves time, reduces typos and lowers the mental overhead of remembering specific command syntax.

Streamlined page titles

Setting the document title for each page is important for accessibility and SEO. Before, this required subscribing to router events and using the Title service, which was repetitive. This version added a title property to the Route object. You can now define a page's title declaratively in your routing configuration, removing a common source of boilerplate code.

Binding to protected members

This update allowed component templates to access protected class members. Previously, any property or method used in a template had to be public. This change gives you finer-grained control over your component's public API. You can expose data to its own template without making it part of the public, injectable interface for other components.

Stable foundations for custom components

The Angular Component Dev Kit (CDK) is a set of tools for building UI components without adopting a specific visual style. Angular 14 promoted key parts of the CDK to stable status.

New CDK primitives

Specifically, the CDK Menu and Dialog were moved to a stable v1.0 release. When a primitive is stable, you can build upon it with confidence that its API will not change unexpectedly. This provided developers with a reliable, accessible foundation for creating custom menus and dialogs without having to solve complex problems like focus trapping and overlay management from scratch.

Conclusion

The features in Angular 14 were more than just quality-of-life improvements. They were foundational changes that set the framework on its current path. Standalone components and typed forms, in particular, have fundamentally changed how we write Angular applications, making them leaner and more robust.

Understanding this evolution is key to building maintainable software. At Excelsior Technologies, we develop custom web applications using modern Angular practices built upon these principles. We deliver software across sectors from agri-commerce to legal management for clients like Univia and the Bar Council of Gujarat. If your team is planning a new project or needs to modernise an existing Angular codebase, contact us to discuss your requirements.

Hire dedicated developers page on excelsiortechnologies.com

We have built this

How we work at Excelsior

Our dedicated developers work your hours, follow your process and report to you. You see matching profiles within 24 to 48 hours, and you interview them before anyone joins your team.

Hire dedicated developers →

Want this for your business?

Ask ET on our website, or book a free 30-minute call with a project lead, not a salesperson.

Ask AI about Excelsior

Don’t take our word for it.Ask an AI.

Ask ET, our own assistant, or the one you already use. The question is about this page; you can read it, copy it or change it there.

The question we’ll ask
“What does Excelsior Technologies, the software company in Ahmedabad and Toronto, do, what have they built, and would they be a good fit for my project?”

Opens in a new tab with this question. Nothing about you is sent.