Created
April 24, 2019 19:39
-
-
Save JanneMattila/a76aac659e35db0bc8a5cf44984271a4 to your computer and use it in GitHub Desktop.
Azure App Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page | |
@using Microsoft.Extensions.Options | |
@using FeatureTogglerApp.Features | |
@inject IOptionsSnapshot<FeatureOptions> featureOptions | |
@model IndexModel | |
@{ | |
ViewData["Title"] = "Home page"; | |
} | |
<div class="text-center"> | |
<h1 class="display-4">Welcome "@featureOptions.Value.AppName"</h1> | |
@if (featureOptions.Value.IndexPageCanvasEnabled) | |
{ | |
<canvas id="canvas" width="200" height="200"></canvas> | |
<script src="~/js/IndexView.js" asp-append-version="true"></script> | |
} | |
else | |
{ | |
<table border="1" width="200" height="200" align="center"> | |
<tr> | |
<td> </td> | |
<td> </td> | |
<td> </td> | |
<td> </td> | |
</tr> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment