diff --git a/src/Microsoft.AspNetCore.SpaServices/README.md b/src/Microsoft.AspNetCore.SpaServices/README.md index 291ce09..a1e109b 100644 --- a/src/Microsoft.AspNetCore.SpaServices/README.md +++ b/src/Microsoft.AspNetCore.SpaServices/README.md @@ -91,7 +91,7 @@ For example, in your `cshtml`, asp-prerender-data="new { IsGoldUser = true, Cookies = ViewContext.HttpContext.Request.Cookies - }""> + }"> Now in your JavaScript prerendering function, you can access this data by reading `params.data`, e.g.: