v15 Migration Guide
This document will help you upgrade from ng-zorro-antd
14.x version to 15.x version.
Before upgrade#
- Make sure
Node.js
>=14.20.0
or >=16.13.0
or >=18.10.0
. - Create a new branch, or use other methods to back up the current project.
- Delete the package-lock.json file.
1.Upgrade dependencies#
- Upgrade Angular to 15.x version, ref https://update.angular.io/.
- Run
ng update @angular/cdk
, if you have used@angular/cdk
.
2.Upgrade NG-ZORRO#
- Run
ng update ng-zorro-antd
. - If any warning messages appear in the console, follow the prompts to modify the corresponding code.