Creating Custom Tag Helper Components with Jass Bagga

Play Creating Custom Tag Helper Components with Jass Bagga

The Discussion

  • User profile image

    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