diff --git a/aspnetcore/blazor/components/index.md b/aspnetcore/blazor/components/index.md index 6bbb4ec512..033c02a68d 100644 --- a/aspnetcore/blazor/components/index.md +++ b/aspnetcore/blazor/components/index.md @@ -54,19 +54,7 @@ The following `HelloWorld` component uses a route template of `/hello-world`. Th The preceding component loads in the browser at `/hello-world` regardless of whether or not you add the component to the app's UI navigation. Optionally, components can be added to the `NavMenu` component so that a link to the component appears in the app's UI-based navigation. -For the preceding `HelloWorld` component, add the following `NavLink` component to the `NavMenu` component. Add the `NavLink` component in a new list item (`
  • ...
  • `) between the unordered list tags (``). - -`Shared/NavMenu.razor`: - -```razor - -``` - -For more information, including descriptions of the `NavLink` and `NavMenu` components, see . +For the preceding `HelloWorld` component, you can add a `NavLink` component to the `NavMenu` component in the `Shared` folder. For more information, including descriptions of the `NavLink` and `NavMenu` components, see . ### Markup @@ -1148,19 +1136,7 @@ The following `HelloWorld` component uses a route template of `/hello-world`. Th The preceding component loads in the browser at `/hello-world` regardless of whether or not you add the component to the app's UI navigation. Optionally, components can be added to the `NavMenu` component so that a link to the component appears in the app's UI-based navigation. -For the preceding `HelloWorld` component, add the following `NavLink` component to the `NavMenu` component. Add the `NavLink` component in a new list item (`
  • ...
  • `) between the unordered list tags (``). - -`Shared/NavMenu.razor`: - -```razor - -``` - -For more information, including descriptions of the `NavLink` and `NavMenu` components, see . +For the preceding `HelloWorld` component, you can add a `NavLink` component to the `NavMenu` component in the `Shared` folder. For more information, including descriptions of the `NavLink` and `NavMenu` components, see . ### Markup @@ -2099,19 +2075,7 @@ The following `HelloWorld` component uses a route template of `/hello-world`. Th The preceding component loads in the browser at `/hello-world` regardless of whether or not you add the component to the app's UI navigation. Optionally, components can be added to the `NavMenu` component so that a link to the component appears in the app's UI-based navigation. -For the preceding `HelloWorld` component, add the following `NavLink` component to the `NavMenu` component. Add the `NavLink` component in a new list item (`
  • ...
  • `) between the unordered list tags (`
      ...
    `). - -`Shared/NavMenu.razor`: - -```razor - -``` - -For more information, including descriptions of the `NavLink` and `NavMenu` components, see . +For the preceding `HelloWorld` component, you can add a `NavLink` component to the `NavMenu` component in the `Shared` folder. For more information, including descriptions of the `NavLink` and `NavMenu` components, see . ### Markup diff --git a/aspnetcore/blazor/security/index.md b/aspnetcore/blazor/security/index.md index c7365a2701..fcdea1e7bc 100644 --- a/aspnetcore/blazor/security/index.md +++ b/aspnetcore/blazor/security/index.md @@ -283,7 +283,7 @@ If authorization conditions aren't specified, component can be used in the `NavMenu` component (`Shared/NavMenu.razor`) to display a list item (`
  • ...
  • `) for a [`NavLink` component](xref:blazor/fundamentals/routing#navlink-and-navmenu-components) (), but note that this approach only removes the list item from the rendered output. It doesn't prevent the user from navigating to the component. +The component can be used in the `NavMenu` component (`Shared/NavMenu.razor`) to display a [`NavLink` component](xref:blazor/fundamentals/routing#navlink-and-navmenu-components) (), but note that this approach only removes the list item from the rendered output. It doesn't prevent the user from navigating to the component. Apps created from a [Blazor project template](xref:blazor/project-structure) that include authentication use a `LoginDisplay` component that depends on an `AuthorizeView` component. The `AuthorizeView` component selectively displays content to users for Identity-related work. The following example is from the [Blazor WebAssembly project template](xref:blazor/project-structure). @@ -826,7 +826,7 @@ If authorization conditions aren't specified, component can be used in the `NavMenu` component (`Shared/NavMenu.razor`) to display a list item (`
  • ...
  • `) for a [`NavLink` component](xref:blazor/fundamentals/routing#navlink-and-navmenu-components) (), but note that this approach only removes the list item from the rendered output. It doesn't prevent the user from navigating to the component. +The component can be used in the `NavMenu` component (`Shared/NavMenu.razor`) to display a [`NavLink` component](xref:blazor/fundamentals/routing#navlink-and-navmenu-components) (), but note that this approach only removes the list item from the rendered output. It doesn't prevent the user from navigating to the component. Apps created from a [Blazor project template](xref:blazor/project-structure) that include authentication use a `LoginDisplay` component that depends on an `AuthorizeView` component. The `AuthorizeView` component selectively displays content to users for Identity-related work. The following example is from the [Blazor WebAssembly project template](xref:blazor/project-structure). @@ -1371,7 +1371,7 @@ If authorization conditions aren't specified, component can be used in the `NavMenu` component (`Shared/NavMenu.razor`) to display a list item (`
  • ...
  • `) for a [`NavLink` component](xref:blazor/fundamentals/routing#navlink-and-navmenu-components) (), but note that this approach only removes the list item from the rendered output. It doesn't prevent the user from navigating to the component. +The component can be used in the `NavMenu` component (`Shared/NavMenu.razor`) to display a [`NavLink` component](xref:blazor/fundamentals/routing#navlink-and-navmenu-components) (), but note that this approach only removes the list item from the rendered output. It doesn't prevent the user from navigating to the component. Apps created from a [Blazor project template](xref:blazor/project-structure) that include authentication use a `LoginDisplay` component that depends on an `AuthorizeView` component. The `AuthorizeView` component selectively displays content to users for Identity-related work. The following example is from the [Blazor WebAssembly project template](xref:blazor/project-structure).