Breadcrumbs
Example of common breadcrumb item:
IBreadcrumbNavigation<Breadcrumb>
is the main service to get navigation. IBreadcrumbNavigation<Breadcrumb>
created once per request within the scope.
For example, create _Breadcrumbs.cshtml
view:
Then you can inject IBreadcrumbNavigation<Breadcrumb>
into _Layout.cshtml
and use _Breadcrumbs.cshtml
partial view to rendering breadcrumbs.
_Layout.cshtml
:
Last updated