Introduction
In this article, let’s take an overlook on the features of Angular 9. Angular has come a long way, it has now reached a peak level of admiration and loved by web developers, and on the horizon, we have a new version (Angular 9). This version makes system building much easier. Honestly, this release mostly includes bug fixes but there are some new cool features too.
Here let’s discuss the new features of Angular 9 as mentioned below.
Angular 9 New Features
-
Updated Ivy compiler
-
Angular ng Form
-
Module with Providers
-
Dependency Injection in Angular core
-
Service Worker Updates
-
i18n Improvements
-
Template Class Binding Fixes
-
@Component @Directive host Binding Inheritance
-
Testbed. Inject.
Updated Ivy- renderer
-
The major update of Angular 9 is an updated lvy compiler with Angular 9 lvy standard renderer. It is very much useful in solving more bundle sizes and increases performance.
-
Comparing lvy compiler with Angular8, the Ivy is in experimental mode behind an optional flag. But here in Angular 9, the Ivy is the default compiler that means we can ship less code because fewer instructions are alone needed.
-
Let’s take a simple example comparing both Angular8 and Angular 9
Example: In Angular 8 we need to add the below code in tsconfig.json file
"angularCompilerOptions": { "enableIvy": true}
But comparing with Angular 8 the Angular 9 Ivy will be the default renderer so that the Angular applications will be faster than the previous versions. Sound’s interesting right? And hold on there is one more to discuss
In Angular8 sometimes we tried to run the “NGC” command inside the node_modules folder for lvy complier. But in Angular 9 we don’t have to do it and it’s not needed
Advantages of lvy
The Major advantages of lvy renderer include the following points as mentioned below
-
It is easier to read and debug at the run time.
-
Since it requires only smaller builds, the re-build time is faster.
-
It has improved page load size and improved template type checking.
Angular ngForm
In Angular 8 the ngForm is represented as mentioned below
- <!-- Angular8 -->
- <ngForm #providerForm="ngForm"></ngFrom>
And in Angular 9 the ng-form is represented as mentioned below
- <!-- Angular9 -->
- <ngForm #providerForm="ngForm"></ngFrom>
-
Since the Forms Module with Config has been removed in Angular 8, we can use the Forms Module directly in Angular 9.
-
The form tag selectors can be mentioned specifically in the " ng update” command which will automatically make this change.
-
All your code syncs with the latest changes.
Module with Providers
In Angular8 the Module with Providers is a generic but optional type. But in Angular 9 the Module with Providers it’s required that you provide a generic type.
- @NgModule({ ...
- }) export class MyModule {
- static forRoot(config: SomeConfig): ModuleWithProviders {
- return {
- ngModule: SomeModule,
- providers: [{
- provide: SomeConfig,
- useValue: config
- }]
- };
- }
- }
Now, in angular 9

Sagar JaybhayPosted Feb 11, 2020, 4:58 AM
Very nice. Thanks for sharing
Sundaram SubramanianPosted Feb 11, 2020, 2:30 AM
Well done. Good to know many :). Thanks for sharing the worth content.
Haridhass ManiPosted Feb 11, 2020, 12:59 AM
Well written bro.....