How do I correctly upgrade angular 2 (npm) to the latest version?

前端 未结 11 1518
予麋鹿
予麋鹿 2020-11-28 00:47

Recently I started Angular 2 tutorial at https://angular.io/docs/ts/latest/tutorial/.

and left off with Angular 2 beta 8. Now I resumed the tutorial and latest beta

11条回答
  •  孤独总比滥情好
    2020-11-28 01:29

    Just start here:

    https://update.angular.io

    Select the version you're using and it will give you a step by step guide.

    I recommend choosing 'Advanced' to see all steps. Complexity is a relative concept - and I don't know whose stupid idea this feature was, but if you select 'Basic' it won't show you all steps needed and you may miss something important that your otherwise 'Basic' application is using.

    As of version 6 there is a new Angular CLI command ng update which intelligently goes through your dependencies and performs checks to make sure you're updating the right things :-)

    The steps will outline how to use it :-)

提交回复
热议问题