Blazor Tutorial C# - Part 6 - Blazor Navigation & Blazor Routing - Blazor Webassembly

Опубликовано: 03 Декабрь 2021
на канале: Coding Droplets
8,939
244

Blazor Tutorial C# - Part 6 is a tutorial video which explains everything about Blazor Navigation & Blazor Routing.

Learn Blazor (blazor webassembly) with Coding Droplets. Below is the Blazor Tutorial Playlist Link:
   • Blazor Tutorial - Beginner to Advanced  

Topics covered in this video:
Blazor Component routing using Page Directives (@page)
Navigation using Hyperlinks
Navigation Manager
Nav Links
Route Parameters
Page Not Found Routing in Blazor

Page Directives:
Page Directives are the routing rules with which we can mention which Razor Component has to be displayed based on the URL. Page Directives can be mentioned in Razor Components using @page.

Navigation Manager:
Navigation Manager is a service which is a default injected dependency in Blazor. Navigation Manager service is having a method named NavigateTo which enables the C# code to control browser’s URL.

NavLink:
A NavLink component behaves like an a tag. Also, it toggles an active CSS class based on whether its href matches the current URL.

Route Parameters:
A route parameter is a parameter that we can pass to a razor component along with the URL. A route parameter is defined in the URL by wrapping its name in a pair of { braces } when adding a component’s Page Directives (@page).

What is App.razor?
App.razor is the root component of the app that sets up client-side routing using the Router component. The Router component intercepts browser navigation and renders the page that matches the requested address.

Chapters:
0:00 - Intro
01:49 - Page Directives
06:38 - Hyperlink Navigation in Blazor
08:35 - Navigation Manager
14:47 - Nav Links
24:20 - Route Parameters
35:53 - Page Not Found Routing

You can reach us at Social Media:
Facebook:   / codingdroplets  
Twitter:   / codingdroplets  
Instagram:   / codingdroplets  
Github: https://github.com/codingdroplets/

#blazor #codingdroplets #blazortutorial


Смотрите видео Blazor Tutorial C# - Part 6 - Blazor Navigation & Blazor Routing - Blazor Webassembly онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Coding Droplets 03 Декабрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,939 раз и оно понравилось 244 людям.