In templates, move survey content out into a separate component
This commit is contained in:
parent
fb3beab270
commit
3b5ce7f4a7
|
|
@ -4,10 +4,4 @@
|
|||
|
||||
Welcome to your new app.
|
||||
|
||||
<div class="alert alert-survey" role="alert">
|
||||
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
|
||||
<strong>How is Blazor working for you?</strong>
|
||||
Please take our
|
||||
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">brief survey</a>
|
||||
and tell us what you think.
|
||||
</div>
|
||||
<SurveyPrompt Title="How is Blazor working for you?" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
<div class="alert alert-survey" role="alert">
|
||||
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
|
||||
<strong>@Title</strong>
|
||||
|
||||
Please take our
|
||||
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">
|
||||
brief survey
|
||||
</a>
|
||||
and tell us what you think.
|
||||
</div>
|
||||
|
||||
@functions
|
||||
{
|
||||
// This is to demonstrate how a parent component can supply parameters
|
||||
public string Title { get; set; }
|
||||
}
|
||||
|
|
@ -4,10 +4,4 @@
|
|||
|
||||
Welcome to your new app.
|
||||
|
||||
<div class="alert alert-survey" role="alert">
|
||||
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
|
||||
<strong>How is Blazor working for you?</strong>
|
||||
Please take our
|
||||
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">brief survey</a>
|
||||
and tell us what you think.
|
||||
</div>
|
||||
<SurveyPrompt Title="How is Blazor working for you?" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
<div class="alert alert-survey" role="alert">
|
||||
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
|
||||
<strong>@Title</strong>
|
||||
|
||||
Please take our
|
||||
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">
|
||||
brief survey
|
||||
</a>
|
||||
and tell us what you think.
|
||||
</div>
|
||||
|
||||
@functions
|
||||
{
|
||||
// This is to demonstrate how a parent component can supply parameters
|
||||
public string Title { get; set; }
|
||||
}
|
||||
Loading…
Reference in New Issue