mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 18:47:30 +00:00
Example of using asp-prerender-data to get server-supplied data to both server and client JS
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<h1>Weather forecast</h1>
|
||||
|
||||
<p>Prerendering data: {{ prerenderingDataString }}</p>
|
||||
|
||||
<p>This component demonstrates fetching data from the server.</p>
|
||||
|
||||
<p *ngIf="!forecasts"><em>Loading...</em></p>
|
||||
|
||||
Reference in New Issue
Block a user