Keeping up with the latest version of Angular is good practise. In this post I will take you through the steps I took with my projects upgrading to Angular 7.
You could also take a look at this upgrading tool by Angular to help with your specific upgrade.
Angular
Let’s begin with the basics. From Angular 6 upgrading Angular versions can be done with the cli. This makes life a lot easier:
ng update @angular/cli @angular/core
Rxjs
Angular 7 uses RxJS v6.3 so update RxJS:
ng update rxjs
Typescript
Angular 7 supports Typescript v3.1 so here we go again:
ng update typescript
Other libraries
- codelyzer
- ng-packagr
- tslib
- tsickle (had to be added)
TsLint plugin
This could be old news already, but we said goodbye to
and got tslint-language-service
as our tslint plugin. Note that this has to be changed in the typescript-tslint-plugin
.tsconfig.json
Hope you got some valuable pointers for a smooth upgrade. Happy upgrading!