Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon

Angular 6.1.0 is here!

Save for later
  • 2 min read
  • 26 Jul 2018

article-image
Version 6.1.0 of the popular JavaScript framework Angular is here. The latest version released yesterday mainly focuses on bug fixes, new features, and support for TypeScript. Let’s discuss these major updates that come with Angular 6.1.0.

In the new version, a KeyValuePipe has been introduced. Support is now offered for  // ... and // TODO in mock compiler expectations. An urlUpdateStrategy feature have been added to the Angular router which allows you to update the browser URL at the beginning of navigation. Feature defaultKeyValueDiffers has been exported to private API. Angular 6.1.0 enables developers to configure the Angular Router so that it remembers the scrolling position of the user as he/she navigates through an application. You can reset the scroll position with the new navigation event and can restore the previous position on pressing the back button.

In addition to these updates, View Encapsulation with ShadowDOM v1 is the new standard. ShadowDOM provides better cross-browser support. Due to this reason, the ViewEncapsulation.Native feature has been deprecated. View encapsulation is the process which associates Cascading Style Sheets (CSS) with the components in which they are defined.

The KeyValueDiffer#diff feature now allows null values. The new release also offers support for TypeScript 2.9, and 2.8 in addition to 2.7.

Apart from these, there are also other breaking changes and bug fixes.

Other Changes

  • Under animation, the end-state styles for orphaned DOM nodes have been rendered.
  • The queried element styles in safari/edge have been properly cleaned up in the latest release.
  • typescript is used to resolve the modules for metadata.
  • Mark Meta and Title services are marked as tree shakable provider.
  • Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at $19.99/month. Cancel anytime
  • versionedFiles in asset-group resources have been deprecated.
  • SwPush.unsubscribe() has been fixed.
  • To use @angular/bazel rules, you need to add calling ng_setup_workspace() in your WORKSPACE file.


Angular 7 will be released sometime in September/October 2018. For a complete list of changes and bug fixes, check out the official release notes.   

Angular 6 is here packed with exciting new features!

Everything new in Angular 6: Angular Elements, CLI commands and more