NG-ZORRO 9.0.0-beta.1 release, Ant Design of Angular achieve

NG-ZORRO 9.0.0-beta.1 released, NG-ZORRO (has been renamed ng-zorro-antd) is Ant Design of Angular implementation, development and services for enterprise-class back-end products.

Part of the API ng-zorro-antd in version 8.x enter abandoned state, and gives a warning of the development environment, deprecated API is no longer supported in 9.0.0 Before all, if you have previously modified in accordance with alarm information use corresponding components, then the version 9.0.0 upgrade will not have any obstacles, follow these steps.

  1. Angular major version upgrade to version 9.0.0, you can refer  https://update.angular.io/
  2. Manually ng-zorro-antd upgrade to the latest version, we will automatically provide official ng update tool in the official version 9.0.0.
  3. After 9.0.0 ng-zorro-antd use the 2.x version date-fns, we provide a format compatible with the internal components of the input tool.

date-fns upgrade

When you switch to  date-fns time, some of the date format will be breaking change. such as:

<!-- datefns v1 -->
<nz-date-picker nzFormat="YYYY-MM-DD"></nz-date-picker>

<!-- datefns v2 -->
<nz-date-picker nzFormat="yyyy-MM-dd"></nz-date-picker>

We recommend using  date-fns v2 date format . If you do not want to use the new date format, you can use  NZ_DATE_FNS_COMPATIBLE when setting  true the time, ng-zorro-antd will v1 format into v2, comparing the old and new formats see here .

providers: [
  { provide: NZ_DATE_FNS_COMPATIBLE, useValue: true }
]

But  NZ_DATE_FNS_COMPATIBLE not retained for too long, to  ng-zorro-antd v10 will be removed to  date-fns support v1 date format , I hope you can update the  date-fns date format. About  date-fns Upgrade Guide Look here , if the business use of date-fns, reference may be date-fns  official compatible tool  to view.

Bug Fixes

Features

Performance Improvements

  • checkbox:  Use css empty selector instead of observeContent ( # 4761 ) ( da8821a )
  • input:  to enhance the input performance ( 7af643b ), Closes  # 3950
  • radio:  Reconstruction of the data flow ( # 4770 ) ( 423a382 )

Update Description: https://github.com/NG-ZORRO/ng-zorro-antd/releases/tag/9.0.0-beta.1

Guess you like

Origin www.oschina.net/news/114184/ng-zorro-9-0-0-beta1-released