PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

Flash of white when navigating between routes via URL (pathlocationstrategy)

Open codingwithrachel opened this issue 10 years ago • 1 comments

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

How should I remove the flash of white (aka "loading..." screen) when I navigate between routes via URL. I am using pathlocationstrategy now to avoid the hash in the url. Could anyone recommend a server side configuration that works with the starter, to use pathlocationstrategy and make the route navigation work like hashlocationstrategy?

codingwithrachel avatar Oct 10 '16 14:10 codingwithrachel

the flash of white means you're making a request for a new page at that url so the client code is not running where it would take over the links and show client generated views

PatrickJS avatar Oct 24 '16 02:10 PatrickJS