You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/fundamentals/navigation.md
+18-22Lines changed: 18 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1354,28 +1354,24 @@ For the following demonstration, a consistent, standard naming convention is use
1354
1354
In the Razor markup of the `NavMenu` component (`NavMenu.razor`) under the default `Home` page, <xref:Microsoft.AspNetCore.Components.Routing.NavLink> components are added from a collection:
@@ -98,6 +162,8 @@ The <xref:Microsoft.AspNetCore.Components.Routing.NavLink> component is built in
98
162
</div>
99
163
```
100
164
165
+
:::moniker-end
166
+
101
167
Notice in the `NavMenu` component's first `<div>` element the brand link text (`<a>` element content). Change the brand from `BlazorWebAppMovies` to `Sci-fi Movies`:
102
168
103
169
```diff
@@ -117,6 +183,46 @@ To allow users to reach the movies `Index` page, add a navigation menu entry to
117
183
118
184
The final `NavMenu` component after making the preceding changes:
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Movies
288
+
</NavLink>
289
+
</div>
290
+
</nav>
291
+
</div>
292
+
```
293
+
294
+
:::moniker-end
295
+
152
296
Run the app to see the updated brand at the top of the sidebar navigation and a link to reach the movies page (**Movies**):
153
297
154
298

0 commit comments