Make the TagHelperContext available to content of Tag Helpers #4975
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-razor-pages
Milestone
As part of #221, contents of all Tag Helper invocations will now be wrapped in a delegate to allow for conditional execution, retrieval, or even suppresion, of the content by the surround Tag Helper.
This delegate should accept a
TagHelperContext tagHelperContext
parameter that is passed in by the page and shared with the surroundingTagHelper
. When combined with #238, this enables the content to either receive or pass values back to the surrounding Tag Helper (depending on the order of execution).This feature would be used by the
CacheTagHelper
(aspnet/Mvc#1552) to enable the contents to add cache invalidation triggers.e.g.
Tag Helper Declaration
Consumption
The text was updated successfully, but these errors were encountered: