Angular 14 was released in June 2022 and includes various new features that will assist to reduce code complexity, make it more type-safe, decrease needless code size, and be more supporting in raising errors/warnings if something wrong occurs in templates.
Below are the hottest features:
1# Standalone Components/Pipes/Directive
import { Component } from "@angular/core";
@Component({
selector: 'app',
template: '<p>Standalone Component</p>',
standalone: true
})
export class AppComponent {}
2# Typed reactivee forms
3# Banana in a box [()] error catching in template
4# Streamlined page title accessibility
const routes: Routes = [{
path: 'home',
component: HomeComponent
title: 'My App - Home' // <-- Page title
}, {
path: 'contact',
component: ContactComponent,
title: 'My App - Contact Me' // <-- Page title
}];
5# Extended developer diagnostics