Skip to content

Commit ab6d10f

Browse files
remove nameof in the negate example (#285)
1 parent 97d6dbf commit ab6d10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ In MVC views `<feature>` tags can be used to conditionally render content based
245245
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.
246246

247247
``` HTML+Razor
248-
<feature negate="true" name=@nameof(MyFeatureFlags.FeatureX)>
248+
<feature negate="true" name="FeatureX">
249249
<p>This can only be seen if 'FeatureX' is disabled.</p>
250250
</feature>
251251
```

0 commit comments

Comments
 (0)