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

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