Stable Release in branch 6.0
6.1.10
Released 10 Oct 2018
(7 years ago)
SoftwareAngular
Version6.0
Initial release6.0.0
03 May 2018
(8 years ago)
Latest release6.1.10
10 Oct 2018
(7 years ago)
Active support end03 Nov 2018
(Ended 7 years ago)
Security support end03 Nov 2019
(Ended 6 years ago)
Commercial support
(HeroDevs-NES)
Yes
Release noteshttps://github.com/angular/angular/blob/main/CHANGELOG_ARCHIVE.md#600-2018-05-03
Source codehttps://github.com/angular/angular/tree/6.1.10
Documentationhttps://angular.io/docs
Angular 6.0 ReleasesView full list

What Is New in Angular 6.0

Angular 6.0 is a major release focused on the toolchain and making it easier to move quickly with Angular in the future. This update brings the entire platform forward, including the core framework, Angular CLI, and Angular Material.

Category Key Changes
New Features Angular Elements, Angular Material Starter Components, CLI Workspaces
Improvements Faster Compiler (ngc), Tree Shakable Providers, RxJS 6.0 Update
Bug Fixes Animation, Service Worker, Router, and i18n fixes
Deprecated ngModel with reactive forms, HttpModule

How does the new Angular CLI workspace model improve development?

The Angular CLI now uses a new workspace and library model with an angular.json file. This replaces the previous .angular-cli.json configuration. The new structure is designed to support multiple projects and libraries within a single workspace, which is a game-changer for monorepo development.

In practice, this means you can manage multiple applications and shareable libraries from one CLI context. The ng generate library command makes it straightforward to create and build reusable code. This matters because it streamlines the workflow for large-scale enterprise applications.

What are Angular Elements and why should I use them?

Angular Elements is a new feature that allows you to package Angular components as custom elements (web components). This lets you use Angular components in any HTML page, even non-Angular environments. It effectively bridges the gap between Angular and the native web platform.

You can create a component and use the createCustomElement() function to transform it into a standard custom element. This is powerful for incrementally upgrading legacy applications or embedding widgets into CMS-powered sites without a full framework bootstrapping process.

How does the RxJS 6 update affect my existing code?

Angular 6 now depends on RxJS 6, which introduced breaking changes to its import paths and API. The old way of importing from 'rxjs/Observable' is replaced by imports from 'rxjs'. Operators are now imported from 'rxjs/operators'.

To ease the migration, the RxJS team provides a backward-compatibility layer and a TSLint-enabled update tool. Running rxjs-5-to-6-migrate will automatically refactor most of your code. This change results in smaller application bundles and a more modular RxJS library.

What are tree-shakable providers and how do they work?

Tree-shakable providers are a new way to define services using the providedIn property. Instead of adding the service to a module's providers array, you now declare it directly in the @Injectable decorator.

@Injectable({
  providedIn: 'root'
})
export class MyService { }

This tells the Angular compiler that the service should be bundled only if it's actually used by the application. If nothing injects MyService, it gets dropped during the build process, leading to smaller final bundle sizes.

FAQ

Do I have to completely rewrite my services to use the new providedIn syntax?
No, the old method of registering services in NgModules still works. The new syntax is optional but recommended for better tree-shaking and to make services available without requiring a specific NgModule.

Is the switch from HttpModule to HttpClientModule mandatory in v6?
HttpModule is now deprecated. While it still functions, you should migrate to HttpClientModule for all new development as it offers a more powerful and flexible API with built-in JSON parsing and interceptors.

What's the deal with the new ng update command?
ng update is a powerful new CLI command that analyzes your package.json and uses its knowledge of the Angular ecosystem to recommend and automatically apply updates to your dependencies and code.

I use animations; will I be affected by the changes?
Yes, there are breaking changes to animation. The AnimationTriggerEvent interface has been removed. Its functionality is now covered by the standard AnimationEvent interface from @angular/animations.

Can I still use the old .angular-cli.json file?
No. When you update your project using ng update, the CLI will automatically migrate your configuration to the new angular.json format. The old file is no longer supported.

Releases In Branch 6.0

VersionRelease date
6.1.1010 Oct 2018
(7 years ago)
6.1.926 Sep 2018
(7 years ago)
6.1.819 Sep 2018
(7 years ago)
6.1.706 Sep 2018
(7 years ago)
6.1.629 Aug 2018
(7 years ago)
6.1.422 Aug 2018
(7 years ago)
6.1.315 Aug 2018
(7 years ago)
6.1.208 Aug 2018
(7 years ago)
6.1.102 Aug 2018
(8 years ago)
6.1.025 Jul 2018
(8 years ago)
6.1.0-rc.319 Jul 2018
(8 years ago)
6.0.811 Jul 2018
(8 years ago)
6.1.0-rc.011 Jul 2018
(8 years ago)
6.0.911 Jul 2018
(8 years ago)
6.0.728 Jun 2018
(8 years ago)
6.1.0-beta.328 Jun 2018
(8 years ago)
6.0.620 Jun 2018
(8 years ago)
6.1.0-beta.220 Jun 2018
(8 years ago)
6.0.513 Jun 2018
(8 years ago)
6.1.0-beta.113 Jun 2018
(8 years ago)
6.0.406 Jun 2018
(8 years ago)
6.1.0-beta.006 Jun 2018
(8 years ago)
6.0.322 May 2018
(8 years ago)
6.0.215 May 2018
(8 years ago)
6.0.111 May 2018
(8 years ago)
6.0.003 May 2018
(8 years ago)
6.0.0-rc.627 Apr 2018
(8 years ago)
6.0.0-rc.514 Apr 2018
(8 years ago)
6.0.0-rc.412 Apr 2018
(8 years ago)
6.0.0-rc.306 Apr 2018
(8 years ago)
6.0.0-rc.205 Apr 2018
(8 years ago)
6.0.0-rc.130 Mar 2018
(8 years ago)
6.0.0-rc.021 Mar 2018
(8 years ago)
6.0.0-beta.817 Mar 2018
(8 years ago)
6.0.0-beta.707 Mar 2018
(8 years ago)
6.0.0-beta.628 Feb 2018
(8 years ago)
6.0.0-beta.522 Feb 2018
(8 years ago)
6.0.0-beta.414 Feb 2018
(8 years ago)
6.0.0-beta.307 Feb 2018
(8 years ago)
6.0.0-beta.231 Jan 2018
(8 years ago)
6.0.0-beta.125 Jan 2018
(8 years ago)
6.0.0-beta.017 Jan 2018
(8 years ago)