Angular 5 vs Angular 6

What's New In Angular 6? What Are Improvements In Angular 6?

What’s coming in Angular 6? Well done! Angular 6, obviously!! We must wait until March or April 2018. Google will offer Angular 6 in March or April 2018.

Off-course!! Angular 6 will be Easier, smaller, faster than Angular 5. It will be making developers’ lives easier. [Brad Green Said]

Angular 6 Improvements and Features -
ü  Added Angular Material and CDK Stable Release
ü  Support Service Worker in the CLI
-             ng generate universal <name>
-             ng build --app=<name>
ü  Improved Universal and AppShell Support in the CLI
-             ng generate app-shell [ --universal-app <universal-app-name>] [ --route <route>]
ü  Improved decorator error messages
ü  TypeScript 2.5.x support
-             npm install [email protected]'~2.5.3'
ü  And many more things are available
ü  Added to support – nativeElement
ü  Re-introduce Query Predicate with more focused role
ü  Add missing lifecycle tests for projected components
ü  Describe safety worker
ü  Add afterContentInit and afterContentChecked to render
ü  Some fixes on language service -
o   The 2.6 version of Typescript’s “resolveModuleName” started to require paths passed to be separated by '/' instead of being able to handle '\'.
ü  Move init hooks into TView
ü  Correct onDestroy order for projected components
ü  Add type and hooks to directive def
ü  Enable size tracking of a minimal CLI render3 application
ü  Fix platform-detection example for Universal
ü  Add canonical view query
ü  Some enhancements on compiler to reflect changes
ü  Rename QueryPredicate to LQuery
ü  Rename LQuery to LQueries and associated renames
ü  Allow HttpInterceptors to inject HttpClient –
o   Previously, an interceptor attempting to inject HttpClient directly would receive a circular dependency error, as HttpClient was constructed via a factory which injected the interceptor instances. Users want to inject HttpClient into interceptors to make supporting
o   Either HttpClient or the user has to deal specially with the circular Dependency. This change moves that responsibility into HttpClient itself. By utilizing a new class HttpInterceptingHandler which lazily Loads the set of interceptors at request time, it's possible to inject HttpClient directly into interceptors as construction of HttpClient no longer requires the interceptor chain to be constructed.
ü  Add navigationSource and restoredState to NavigationStart -
o   Currently, NavigationStart there is no way to know if navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).
ü  Removes generation of comments
ü  Fix SideNav height on narrow screens -
o   Since we specify `bottom: 0`, specifying the height is unnecessary and Leads to wrong height (unless updated) on narrow screens where the topbar height is decreased.



Please see the complete list of features and bug fixes - Angular, Material and CLI -https://github.com/angular/angular/blob/master/CHANGELOG.md

I hope you are enjoying with this post! Please share with you friends. Thank you so much!
ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - https://code-sample.com and https://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.
ASK Questions