Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Discussion: TagHelpers understand enum typed attributes better. #590

Closed
NTaylorMullen opened this issue Oct 29, 2015 · 0 comments
Closed
Milestone

Comments

@NTaylorMullen
Copy link
Member

TagHelpers now better understand enum values. This will break pre-existing MVC applications that have TagHelpers who have enum based attributes.

A great example of this is the validation summary TagHelper added by Microsoft.AspNet.Mvc.TagHelpers. Examples using this TagHelper are below.

Before

<div asp-validation-summary="ValidationSummary.All">...</div>

@{
    var valSummary = ValidationSummary.ModelOnly;
}
<div asp-validation-summary="valSummary">...</div>

After

<div asp-validation-summary="All">...</div>

@{
    var valSummary = ValidationSummary.ModelOnly;
}
<div asp-validation-summary="@valSummary">...</div>

Here is the issue that tracked the work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants