Page Layouts

The boilerplate code uses bootstrap CSS, in the MainLayout component based on the routing specified in the NavMenu components,the corresponding components are rendered in @Body div element. NavLink is the inbuilt blazor component which provides routing to the list of components as specified in href attribute.

@inherits LayoutComponentBase
    <NavMenu />
<div >
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<NavLink class="nav-link" href="counter">
<NavLink class="nav-link" href="fetchdata">
   Fetch data

Last Updated: 11/9/2019, 11:22:54 AM