Angular 7

Angular 8 vs Angular 7 - What Are Differences in Angular 8 and Angular 7, 6, 5, 4, 2?

What’s New In Angular 8?
Angular 8 being smaller, faster and easier to use and it will making Angular developers life easier. Angular version numbers have three parts: major.minor.patch. This release contains the following added and Improvements over the entire Angular platform including:-

=> Added Support for TypeScript 3.2
=> Added a Navigation Type Available during Navigation in the Router
=> Added pathParamsOrQueryParamsChange mode for runGuardsAndResolvers in the Router
=> Allow passing state to routerLink Directives in the Router
=> Allow passing state to NavigationExtras in the Router
=> Restore whole object when navigating back to a page managed by Angular Router
=> Added support for SASS
=> Resolve generated Sass/Less files to .css inputs

=> Added Predicate function mode for runGuardsAndResolvers:-
This option means guards and resolvers will ignore changes when a provided predicate function returns `false`. This supports use cases where an application needs to ignore some param updates but not others.

For example, changing a sort param in the URL might need to be ignored, whereas changing the `project` param might require re-run of guards and resolvers.

=> Added functionality to mark a control and its descendant controls as touched: - add markAllAsTouched () to AbstractControl

=> Added ng-new command that builds the project with Bazel
=> Use image based cache for windows BuildKite
=> Export NumberValueAccessor & RangeValueAccessor directives

=> Use shared DomElementSchemaRegistry instance for improve performance of platform-server (@angular/platform-server):-
Right now the ServerRendererFactory2` creates a new instance of the `DomElementSchemaRegistry` for each and every request, which is quite costly (for the Tour of Heroes SSR example this takes around **15%** of the overall execution time)

=> Now the Performance Improvements on core, more consistent about “typeof checks”: -
When testing whether `value` is an object, use the ideal sequence of strictly not equal to `null` followed by `typeof value === 'object'` consistently. Specifically there's no point in using double equal with `null` since `undefined` is ruled out by the `typeof` check.

Also avoid the unnecessary ToBoolean check on `value.ngOnDestroy` in `hasOnDestroy()`, since the `typeof value.ngOnDestroy === 'function'` will only let closures pass and all closures are truish (with the notable exception of `document.all`, but that shouldn't be relevant for the `ngOnDestroy` hook)

=> In the Compiler-CLI, expose ngtsc as a TscPlugin

=> Restore whole object when navigating back to a page managed by Angular Router:-
This feature adds a few capabilities. First, when a `popstate` event fires the value of `history.state` will be read and passed into `NavigationStart`. In the past, only the `navigationId` would be passed here.
Additionally, `NavigationExtras` has a new public API called `state` which is any object that will be stored as a value in `history.state` on navigation.

For example, the object `{foo: 'bar'}` will be written to `history.state` here: -`router.navigateByUrl('/simple', {state: {foo: 'bar'}});`

Angular 8 beta will be release on March/April 2019 and this release contains performance improvement, bug fixing, dependency injection, and some new features for core framework.

The following table contains our current target release dates for the next two major versions of Angular:
Stable Release
March/April 2019
September/October 2019

Many of new things are added, bug fixing and improvements in Angular 8 beta version and also many of us will curious to know these new features and bug fixes.

Are you curious to know about the recently stable released Angular 7.2.3, click to explore in details?

Are you interested to know about, what’s new in Angular 7.2.3?  You can download Angular 7.2.3 stable production release form GitHub.

What's New In Angular 7? Let’s Introduce Angular 7 New Features!

Let’s introduce added and modified new features of Angular 7 -
1.       Added a new interface - UrlSegment[] to CanLoad interface
2.       Added a new interface -  DoBootstrap interface
3.       Angular 7 added a new compiler - Compatibility Compiler (ngcc)
4.       Introduce a new Pipe called - KeyValuePipe
5.       Angular 7 now supporting to TypeScript 2.9 and Added Virtual Scrolling and Drag & Drop
6.       Added a new elements features - enable Shadow DOM v1 and slots
7.       Added a new router features - warn if navigation triggered outside Angular zone
8.       Added a new mapping for ngfactory and ngsummary files to their module names in AOT summary resolver.
9.       Added a new "original" placeholder value on extracted XMB
10.   Added a new ability to recover from malformed URLs
11.   Added a new compiler support dot (.) in import statements and also avoid a crash in ngc-wrapped
12.   Update compiler to flatten nested template fns

Explore for more detail about - What's New In Angular 7?

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..
My Blogs - and
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide. Powered by Blogger.