Browse Source

Used menu component as tag helper.

pull/81/head
Halil İbrahim Kalkan 10 years ago
parent
commit
a911f23483
  1. 5
      src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml
  2. 3
      src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewImports.cshtml

5
src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml

@ -1,4 +1,4 @@
@using AbpDesk.Web.Mvc.Views.Shared.Components.Menu
@using Volo.Abp.Ui.Navigation
@{
Layout = null;
}
@ -13,7 +13,8 @@
</head>
<body>
@await Component.InvokeAsync(typeof(MenuViewComponent))
<!-- We should pass all optional parapeters because of a bug in MVC -->
<vc:menu menu-name="@StandardMenus.Main" view-name="Default"></vc:menu>
@RenderBody()

3
src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewImports.cshtml

@ -1 +1,2 @@
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, AbpDesk.Web.Mvc
Loading…
Cancel
Save