Creating Custom Tag Helper Components with Jass Bagga

Sign in to queue

Description

In this video Jass Bagga as she shows us how to Create Custom Tag Helper Components.

To get started:

Tags:

ASP.NET, C#, Coding

Embed

Download

The Discussion

  • User profile image
    andriysavin

    Thanks for the demo!

    But though its a cool feature, some aspects look confusing. As far as I understand, each tag helper which inherits from TagHelperComponentTagHelper (like HeadTagHelper) regardless of the tag it targets will call ALL registered tag helper components. And each component should check the tag name once more (at least for the shown scenario). Of course, if component's goal is not tag-specific, all looks less confusing: with TagHelperComponentTagHelper you "select" the elements to which to apply components, and then the components do their arbitrary stuff. So probably, its this particular example makes me scratching my head.

Add Your 2 Cents