hi,
I created a View Component named "LoginForm".
When I use @await Component.InvokeAsync("LoginForm"), it works. But tag helper <cv:login-form></vc:login-form> shows nothing.
I added @addTagHelper *, Web.ViewComponents in _ViewImports.cshtml
My app is asp.net core 2.0 and using sdk 2.0.2.
What did I miss? Thanks.
namespace Web.ViewComponents { /// <summary> /// Login Form Component /// </summary> [ViewComponent(Name = "LoginForm")] public class LoginFormViewComponent : ViewComponent { public async Task<IViewComponentResult> InvokeAsync() { return View(); } } }