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

Add [HtmlAttributeNotBound] property to indicate that a property should not come from HTML #182

Closed
@NTaylorMullen

Description

@NTaylorMullen

Right now all public get; set; properties on a TagHelper are automatically bound to HTML with no way to opt-out. Adding a [NotBound] attribute (or another attribute name) would enable users to opt-out of TagHelper binding.

Example:

class DivTagHelper : TagHelper
{
    [NotBound]
    public string MyValue { get; set; } // Is not auto-filled and is not expected to be represented in HTML.
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions