I ever wandered if with Angular 2
, is it possible to prerender data
then show the page which contains those data?
Let I explain what I want:
- First step:
I click on a link, the url change but the current page doesn't show again until the data is fully loaded. (I don't want to show gif loader.) It's like a timeout until data is loaded.
- Second step:
When data is loaded, I want to display the page which contains those data.
Is there a way to realize this with Angualr 2
?
Could somebody give me a link that can explain me this concept?
N.B: I found this: What is best way to load json settings from the server? but I don't really understand how to add this into my code.
This too: https://angular.io/docs/ts/latest/api/core/index/APP_INITIALIZER-let.html but there's no example or more explaination into the official website.
Update
The picture above will show what I want:
Thanx in advanced.