From a4731d3caaca6fd82baf0821b90fa63b90f89830 Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:48:57 -0500 Subject: [PATCH 1/2] [11.0 P1] Remove the inline JS event handler --- aspnetcore/blazor/fundamentals/navigation.md | 40 +++++----- .../tutorials/movie-database-app/part-3.md | 78 +++++++++++++++++++ 2 files changed, 96 insertions(+), 22 deletions(-) diff --git a/aspnetcore/blazor/fundamentals/navigation.md b/aspnetcore/blazor/fundamentals/navigation.md index 65412e463747..727db0c60643 100644 --- a/aspnetcore/blazor/fundamentals/navigation.md +++ b/aspnetcore/blazor/fundamentals/navigation.md @@ -1354,28 +1354,24 @@ For the following demonstration, a consistent, standard naming convention is use In the Razor markup of the `NavMenu` component (`NavMenu.razor`) under the default `Home` page, components are added from a collection: ```diff - + ``` The `GetRoutableComponents` method in the `@code` block: diff --git a/aspnetcore/blazor/tutorials/movie-database-app/part-3.md b/aspnetcore/blazor/tutorials/movie-database-app/part-3.md index f23ba0ea89d8..0e160092706e 100644 --- a/aspnetcore/blazor/tutorials/movie-database-app/part-3.md +++ b/aspnetcore/blazor/tutorials/movie-database-app/part-3.md @@ -72,6 +72,40 @@ The component is built in `Components/Layout/NavMenu.razor`: +:::moniker range=">= aspnetcore-11.0" + +```razor + + + + + + + +``` + +:::moniker-end + +:::moniker range="< aspnetcore-11.0" + ```razor