Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

angular 2.1.2 angular universal + flickers on browser #439

Closed
amitjain28 opened this issue Sep 20, 2017 · 4 comments
Closed

angular 2.1.2 angular universal + flickers on browser #439

amitjain28 opened this issue Sep 20, 2017 · 4 comments

Comments

@amitjain28
Copy link

amitjain28 commented Sep 20, 2017

when bootstraping at client side since the UI is rendered twice, 1 at server-side and 1 at client-side.
Also it is is showing white flash while flickering

Can anyone help?

@MarkPieszak
Copy link
Contributor

Are you doing an Http call?
Are both your withTransitions providing the same appId?

Lastly, try adding initialNavigation: 'enabled' to your RouterModule options.

RouterModule.forRoot([ /* your routes */ ], { 
 // router options here
 initialNavigation: 'enabled' 
})

@Ovidiu-S
Copy link

I am having the same problem.
I am doing an http call, initialNavigation: 'enabled' is set.
Please provide more info on withTransitions

@RubensTen
Copy link

the same problem with
Angular 5
Angular universal 5

Any solution ?

@inorganik
Copy link

@MarkPieszak

Are both your withTransitions providing the same appId?

I only have 1 in app.module.ts: BrowserModule.withServerTransition({ appId: 'serverApp' }),, should there be a second one somewhere?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants