Upgrade from Angular 2.x to Angular 4!
Looking to upgrade your project to Angular 4 ?
You can simply try an in-place upgrade:
iOS/Linux:
npm i @angular/{common,compiler,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router}@next typescript@latest –S –E
npm i @angular/compiler-cli@next –D -E
Windows:
npm i @angular/common@next @angular/compiler@next @angular/core@next @angular/forms@next @angular/http@next @angular/platform-browser@next @angular/platform-browser-dynamic@next @angular/platform-server@next @angular/router@next typescript@latest –S -E
npm i @angular/compiler-cli@next –D -E
> For me, there was no code changes and my bundles became 25% smaller!
Can’t we have a simple one-line command to upgrade?
I attended a couple of conferences during 2016 and now I’m an Angular trainer at https://www.kamaltechnologies.in
I’m really thankful for the life-changing website.
Good luck and please post often.