Skip to content

Instantly share code, notes, and snippets.

@techiediaries
Last active June 21, 2022 01:07
Show Gist options
  • Save techiediaries/26a5abcb56d56c7b2715ece87fabe639 to your computer and use it in GitHub Desktop.
Save techiediaries/26a5abcb56d56c7b2715ece87fabe639 to your computer and use it in GitHub Desktop.
The new features introduced with Angular 14

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment