Skip to content

Commit

Permalink
remove nameof in the negate example (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanliang-ms authored Oct 17, 2023
1 parent 97d6dbf commit ab6d10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ In MVC views `<feature>` 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
<feature negate="true" name=@nameof(MyFeatureFlags.FeatureX)>
<feature negate="true" name="FeatureX">
<p>This can only be seen if 'FeatureX' is disabled.</p>
</feature>
```
Expand Down

0 comments on commit ab6d10f

Please sign in to comment.