Is it possible to pass ModelExpression to a TagHelper?
We can get a ModelExpression using this property in a TagHelper: [HtmlAttributeName("asp-for")] public ModelExpression For { get; set; } I somehow managed* to have a ViewModel wich has a ModelExpression property: public class TemplateViewModel { public ModelExpression For { get; set; } } Everytime I try to pass it, the Model expression is For from TemplateViewModel , not the real Expression wich is stored into For : @model TemplateViewModel <input asp-for="@Model.For" class="form-control"/> Above results in: <input class="form-control" type="text" id="For" name="For" value="Microsoft