Have you updated your project to Angular v6? [POLL]
Now that Angular v6 is here, we’d like to know if you’ve updated your project to the latest version. Are you still using Angular v5, v4 or previous versions? Angular developers, this poll is for you.
We were expecting Angular v6 a bit earlier but it’s all water under the bridge now. We’re even more excited since this is the first release that unifies the Framework, Material and CLI.
If you want to read more about the highlights and the new CLI-powered update workflow for your projects, check out the v6 release announcement.
We talked with Minko Gechev, Shai Reznik, Radoslav Karaivanov and Konstantin Dinev about Angular v6 and we learned that even though some are still using Angular v5, they are all excited about the latest version and will update their projects as soon as possible because, as Shai Reznik pointed out, “it’s easy, there are almost no breaking changes, and second, why not taking advantage of the new features and goodies.”
How about you?
Angular Update Guide
Speaking of updating your application, if you don’t know how to do that, you should use the Angular Update Guide. All you have to do is select the version you’re currently using, how complex your app is, if you’re using ngUpdate, the package manager and that’s it.
For example, if you have a basic app and you want to update from Angular v5 to Angular v6, here’s what you need to do:
HttpClientservice. HttpClient simplifies the default ergonomics (You don’t need to map to json anymore) and now supports typed return values and interceptors. Read more on angular.io
During the update
npm install -g @angular/cli
npm install @angular/cli
ng update @angular/cli
ng update @angular/core
After the update, TypeScript and RxJS will more accurately flow types across your application, which may expose existing errors in your application’s typings
ng update @angular/material
This will also automatically migrate deprecated APIs.
ng updateor your normal package manager tools to identify and update other dependencies.
After the update
For most applications this will mean running the following two commands:
npm install -g rxjs-tslint
rxjs-5-to-6-migrate -p src/tsconfig.app.json