Skip to content

Instantly share code, notes, and snippets.

@kasunkv
Created January 18, 2020 18:58
Show Gist options
  • Save kasunkv/a5c708850d133f2396d89892f5192823 to your computer and use it in GitHub Desktop.
Save kasunkv/a5c708850d133f2396d89892f5192823 to your computer and use it in GitHub Desktop.
Using the tag helper to check for multiple feature flags
<div class="container">
...
<div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
<ul class="navbar-nav flex-grow-1">
...
<feature name="@Features.Promotions, @Features.PromotionDiscounts" requirement="All">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Promotions">Promotions</a>
</li>
</feature>
...
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment