diff --git a/README.md b/README.md index 49c2ec6f..f5fa337b 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,14 @@ In MVC views `` tags can be used to conditionally render content based ``` +You can also negate the tag helper evaluation to display content when a feature or set of features are disabled. By setting `negate="true"` in the example below, the content is only rendered if `FeatureX` is disabled. + +``` HTML+Razor + +

This can only be seen if 'FeatureX' is disabled.

+
+``` + The `` tag requires a tag helper to work. This can be done by adding the feature management tag helper to the _ViewImports.cshtml_ file. ``` HTML+Razor @addTagHelper *, Microsoft.FeatureManagement.AspNetCore