From the course: Blazor WebAssembly: Building Your First App
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Built-in components - Blazor Tutorial
From the course: Blazor WebAssembly: Building Your First App
Built-in components
- [Instructor] The Blazor framework has a number of Razor components that are built in. I'm going to look at the ones that you're likely to use on a regular basis. These include PageTitle, which sets the page title of the page. HeadContent, which allows you to add additional attributes to the head content. NavLink, which allows you to add a link and allows you to highlight the link when you are on the same page you are linking to. And LayoutView, which allows you to render a layout view inside a Razor component. I'm inside the ProductList in Razor component and I wish to add a page title to it. It's a simple case of adding the PageTitle tag and adding the title inside it. So I'm going to give it the title of Product listing page and that is set up. If I go into the ProductDetails component, I can see that I'm also able to use properties in a PageTitle tag. In this instance, I'm getting the product reference and I'm…
Contents
-
-
-
-
-
(Locked)
Create a Razor component4m 15s
-
(Locked)
Code blocks4m 7s
-
(Locked)
Parameters6m 23s
-
(Locked)
Other directives5m 50s
-
(Locked)
Data binding3m 34s
-
(Locked)
Event handling3m 55s
-
(Locked)
Built-in components5m 44s
-
(Locked)
Challenge: Basic web application4m 27s
-
(Locked)
Solution: Basic web application5m 27s
-
(Locked)
-