Ng-zorro-antd: unexpected transition when router change

Created on 27 Dec 2018  ·  7Comments  ·  Source: NG-ZORRO/ng-zorro-antd

All 7 comments

https://stackblitz.com/edit/ng-zorro-antd-start-nqwret
把导航从路由组件移动到app.component不会闪烁。

https://stackblitz.com/edit/ng-zorro-antd-start-sxbud9
使用router.navigate代替routerlink也不会闪烁

For workaround, using imperative className assignment rather than class binding:

https://stackblitz.com/edit/ng-zorro-antd-start-jw8faq?file=src/app/app.component.ts

This is likely to be a Chrome issue triggered by specific timing, while not sure what the real cause, using a different action sequence may get rid of this issue.

Was this page helpful?
0 / 5 - 0 ratings