mirror of https://github.com/abpframework/abp.git
2 changed files with 6 additions and 7 deletions
@ -1,7 +0,0 @@ |
|||
# From Server to Browser — the Elegant Way: Angular TransferState Explained |
|||
|
|||
## Introduction |
|||
|
|||
When building Angular applications with Server-Side Rendering (SSR), one of the most common performance pitfalls is duplicated data fetching. Your server fetches data to render the initial HTML, and then — as soon as the browser bootstraps Angular — it fetches the same data all over again. That’s wasteful, especially for APIs that don’t change often. |
|||
|
|||
Enter TransferState, Angular’s elegant solution to bridge the data gap between the server and the browser. It allows you to transfer pre-fetched data from the server-rendered page to the client seamlessly — no redundant HTTP calls, no flickering spinners, and no extra waiting time. |
|||
@ -0,0 +1,6 @@ |
|||
# From Server to Browser — the Elegant Way: Angular TransferState Explained |
|||
|
|||
## Introduction |
|||
|
|||
When building Angular applications with Server-Side Rendering (SSR), one of the most common performance pitfalls is duplicated data fetching. Server fetch data while generating initial HTML, and then browser bootstraps Angular and it fetches the same data all over again. That’s wasteful, especially for APIs that don’t change often. |
|||
To solve this problem, Angular provide **TransferState**. It allows to transfer data from application on server to application on browser, in this way you can avoid redundant unnecessary operations. |
|||
Loading…
Reference in new issue