From 3b5ce7f4a791116278689a9fe2e4a9cd630150c9 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 21 Mar 2018 16:22:32 +0000 Subject: [PATCH] In templates, move survey content out into a separate component --- .../Pages/Index.cshtml | 8 +------- .../Shared/SurveyPrompt.cshtml | 16 ++++++++++++++++ .../BlazorStandalone.CSharp/Pages/Index.cshtml | 8 +------- .../Shared/SurveyPrompt.cshtml | 16 ++++++++++++++++ 4 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Shared/SurveyPrompt.cshtml create mode 100644 src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Shared/SurveyPrompt.cshtml diff --git a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Pages/Index.cshtml b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Pages/Index.cshtml index cf2837fd01..e54d914390 100644 --- a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Pages/Index.cshtml +++ b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Pages/Index.cshtml @@ -4,10 +4,4 @@ Welcome to your new app. - + diff --git a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Shared/SurveyPrompt.cshtml b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Shared/SurveyPrompt.cshtml new file mode 100644 index 0000000000..64a9520e29 --- /dev/null +++ b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted.CSharp/BlazorHosted.CSharp.Client/Shared/SurveyPrompt.cshtml @@ -0,0 +1,16 @@ + + +@functions +{ + // This is to demonstrate how a parent component can supply parameters + public string Title { get; set; } +} diff --git a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Pages/Index.cshtml b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Pages/Index.cshtml index cf2837fd01..e54d914390 100644 --- a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Pages/Index.cshtml +++ b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Pages/Index.cshtml @@ -4,10 +4,4 @@ Welcome to your new app. - + diff --git a/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Shared/SurveyPrompt.cshtml b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Shared/SurveyPrompt.cshtml new file mode 100644 index 0000000000..64a9520e29 --- /dev/null +++ b/src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone.CSharp/Shared/SurveyPrompt.cshtml @@ -0,0 +1,16 @@ + + +@functions +{ + // This is to demonstrate how a parent component can supply parameters + public string Title { get; set; } +}