-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Description
Description
This is a second example, and it's better for a new section on render mode by area. The example can show setting the render mode by path ...
<Routes @rendermode="@RenderModeForPage" />
...
[CascadingParameter]
private HttpContext HttpContext { get; set; } = default!;
private IComponentRenderMode? RenderModeForPage =>
HttpContext.Request.Path.StartsWithSegments("/Admin") ? InteractiveServer : null;
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0
Content source URL
Document ID
7c9948a3-9886-8097-6014-492a4c21ea4e
Article author
Metadata
Metadata
Assignees
Type
Projects
Status
Done