25
Difference between Angular versions
Difference between angular versions till 11th Dec 2021.
Until now Angular Version 13 released.
Until now Angular Version 13 released.
Javascript
This version is skipped due to mismatch of @angular/core, @angular/compiler and
@angular/router
libraries.@angular/router
was already version 3.x with huge development. So to avoid the confusion they skipped this version.*ngIf/else
Now you can use else
as well .@angular/core
so as to remove the extra code being imported into our production bundle. Though you can easily add animation by importing {BrowserAnimationsModule} from @angular/platform-browser/animations
into NgModule
.updateOn
Blur / SubmitBuild Optimiser
.@angular/http
replaced with @angular/common/http
library.HttpModule
is replaced by HttpClientModule
of @angular/common/http
inject the HttpClient service, and remove any map(res => res.json())
calls, which are no longer needed.ng update
and ng add
ng new
or ng add @angular/material
to help you discover built-in features like routing or SCSS support. CLI Prompts are also added in Schematics.ng build
, ng test
,and ng run
.ng deploy
is added in Angular CLI 8.3.0It provides the following advantages
New Options for providedIn property in @Injectable Decorator, In addition to the previous root and module options, you have two additional options.
platform : Specifying providedIn: 'platform' makes the service available in a special singleton platform injector that is shared by all applications on the page.
any : Provides a unique instance in every module (including lazy modules) that injects the token.
Component harnesses
Angular Material New Component
Youtube player Component
Google Maps Component
TypeScript 3.7 Support
ng serve --hmr
tailwind.config.js
to use tailwind CSSComponentFactoryResolver
being injected into the constructor. Ivy creates the opportunity to instantiate the component with ViewContainerRef.createComponent
without creating an associated factory.25