我的项目对支持Angular2的库有很多依赖,但对于Angular6却没有。现在,我发现很难通过阅读他们的github页面来准确判断它们是否支持Angular2。一种想法-查看package.json打字稿版本-如果低于2.7.2(最低Angular6打字稿版本),则它绝对不支持Angular6。那正确吗?如何从github页面知道库是否支持Angular6?
答案 0 :(得分:0)
Important Point to move angular to higher angular version
1) Remove all node modules 2) Always make backup of app folder 3) Install angular latest version using cli (ex 4, 6) - ng new projectname 4) install all third party dependencies individually which are listed in package.json of angular 2 project ex. [lodash , primeng, ] using npm install -- save 5) please don't install all core modules of angular using npm. it automatically add while add new project using ng new command. ex ("@angular/forms" ,"@angular/http", "@angular/platform-browser")
it is best way to convert angular 2 to angular higher version