Angular universal: flickering and styles

I'm using angular cli 1.5, angular 5.0 and angular universal.

When using server side rendering, I'm noticing some flicker when the client takes over.

I've already specified { initialNavigation: 'enabled' } when importing routing module.

When could it come from? Also, I tried removing all styles from the server bundle, but it does not help... Is it really needed btw?


The solution for me was to use the TransferState API, which prevented flickering

https://angular.io/api/platform-browser/TransferState

Thanks @wassertim

链接地址: http://www.djcxy.com/p/31304.html

上一篇: 问题在Angular Universal部署中

下一篇: 角度通用:闪烁和风格