Angular is a
typescript-based web application framework and is Google’s brilliant creation.
It has released its latest version which is Angular 14. It has arrived with
stand-alone components, promising to streamline application development by
reducing the need for angular modules.
It is
believed to be the most systematic pre-planned upgrade by Angular. It has
released new features which include CLI auto-completion, typed reactive forms,
stand-alone components, directives, pipes, and enhanced template diagnostics.
Stand-Alone Components:
The
standalone component is a new feature that lets you create your components and
use them anywhere in the app. The biggest advantage of standalone components is
that they are easier to customize than other types of components.
You can
create these kinds of components using the @Component annotation, which tells
angular how to build this kind of component when you include it in the app.
Here’s an example:
import {Component} from ‘@angular/core’;
import {AppComponent} from ‘./app.component’;
@Component({ selector: demo-app’,
template: `<h1>Hello World!</h1>`}) export class AppComponent {}
Strictly Typed Forms:
In Angular
14, you can now use TypeScript to enforce a strict form of types on the forms.
This means that each field will be checked against its type when it is
submitted or validated, which makes it easier to make sure that the forms are
not invalid.
Read more on Angular 14