diff --git a/aspnetcore/client-side/spa/blazor/get-started.md b/aspnetcore/client-side/spa/blazor/get-started.md index 138384109975..66da530ef3ea 100644 --- a/aspnetcore/client-side/spa/blazor/get-started.md +++ b/aspnetcore/client-side/spa/blazor/get-started.md @@ -5,7 +5,7 @@ description: Learn how to get started with Blazor by creating and modifying a Bl monikerRange: '>= aspnetcore-3.0' ms.author: riande ms.custom: mvc -ms.date: 04/07/2019 +ms.date: 04/14/2019 uid: spa/blazor/get-started --- # Get started with Blazor @@ -154,7 +154,7 @@ To add a parameter to the Counter component, update the component's `@functions` *Pages/Counter.cshtml*: -[!code-cshtml[](get-started/samples_snapshot/3.x/Counter2.cshtml?highlight=4,8)] +[!code-cshtml[](get-started/samples_snapshot/3.x/Counter2.cshtml?highlight=4-5,9)] Specify an `IncrementAmount` parameter in the Home component's `` element using an attribute. diff --git a/aspnetcore/client-side/spa/blazor/get-started/samples_snapshot/3.x/Counter2.cshtml b/aspnetcore/client-side/spa/blazor/get-started/samples_snapshot/3.x/Counter2.cshtml index bf5adca257fb..0e44b4653942 100644 --- a/aspnetcore/client-side/spa/blazor/get-started/samples_snapshot/3.x/Counter2.cshtml +++ b/aspnetcore/client-side/spa/blazor/get-started/samples_snapshot/3.x/Counter2.cshtml @@ -1,7 +1,8 @@ @functions { private int currentCount = 0; - [Parameter] private int IncrementAmount { get; set; } = 1; + [Parameter] + private int IncrementAmount { get; set; } = 1; private void IncrementCount() { diff --git a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/ListViewTemplate.cshtml b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/ListViewTemplate.cshtml index 5d1e16e32e86..1290193c1bae 100644 --- a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/ListViewTemplate.cshtml +++ b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/ListViewTemplate.cshtml @@ -8,6 +8,9 @@ @functions { - [Parameter] private RenderFragment ItemTemplate { get; set; } - [Parameter] private IReadOnlyList Items { get; set; } + [Parameter] + private RenderFragment ItemTemplate { get; set; } + + [Parameter] + private IReadOnlyList Items { get; set; } } diff --git a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/Tab.cshtml b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/Tab.cshtml index 9bdbd87f2add..851a1d04a5ad 100644 --- a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/Tab.cshtml +++ b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/Tab.cshtml @@ -10,8 +10,12 @@ @functions { [CascadingParameter] private TabSet ContainerTabSet { get; set; } - [Parameter] private string Title { get; set; } - [Parameter] public RenderFragment ChildContent { get; private set; } + + [Parameter] + private string Title { get; set; } + + [Parameter] + public RenderFragment ChildContent { get; private set; } private string TitleCssClass => ContainerTabSet.ActiveTab == this ? "active" : null; diff --git a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TabSet.cshtml b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TabSet.cshtml index 4b0d14dbc29a..c36631df32e6 100644 --- a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TabSet.cshtml +++ b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TabSet.cshtml @@ -13,7 +13,8 @@ @functions { - [Parameter] private RenderFragment ChildContent { get; set; } + [Parameter] + private RenderFragment ChildContent { get; set; } public ITab ActiveTab { get; private set; } diff --git a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TableTemplate.cshtml b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TableTemplate.cshtml index b7393be16699..bf5768000b7a 100644 --- a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TableTemplate.cshtml +++ b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Components/TableTemplate.cshtml @@ -16,8 +16,15 @@ @functions { - [Parameter] private RenderFragment TableHeader { get; set; } - [Parameter] private RenderFragment RowTemplate { get; set; } - [Parameter] private RenderFragment TableFooter { get; set; } - [Parameter] private IReadOnlyList Items { get; set; } + [Parameter] + private RenderFragment TableHeader { get; set; } + + [Parameter] + private RenderFragment RowTemplate { get; set; } + + [Parameter] + private RenderFragment TableFooter { get; set; } + + [Parameter] + private IReadOnlyList Items { get; set; } } diff --git a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Pages/CascadingValuesParametersTabSet.cshtml b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Pages/CascadingValuesParametersTabSet.cshtml index b753fd0e84fa..ce5200c8b94e 100644 --- a/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Pages/CascadingValuesParametersTabSet.cshtml +++ b/aspnetcore/razor-components/common/samples/3.x/BlazorSample/Pages/CascadingValuesParametersTabSet.cshtml @@ -90,7 +90,8 @@ namespace BlazorSample.UIInterfaces </div> @@functions { - [Parameter] private RenderFragment ChildContent { get; set; } + [Parameter] + private RenderFragment ChildContent { get; set; } public ITab ActiveTab { get; private set; } @@ -136,8 +137,12 @@ namespace BlazorSample.UIInterfaces @@functions { [CascadingParameter] private TabSet ContainerTabSet { get; set; } - [Parameter] private string Title { get; set; } - [Parameter] public RenderFragment ChildContent { get; private set; } + + [Parameter] + private string Title { get; set; } + + [Parameter] + public RenderFragment ChildContent { get; private set; } private string TitleCssClass => ContainerTabSet.ActiveTab == this ? "active" : null; diff --git a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/ListViewTemplate.razor b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/ListViewTemplate.razor index 5d1e16e32e86..1290193c1bae 100644 --- a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/ListViewTemplate.razor +++ b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/ListViewTemplate.razor @@ -8,6 +8,9 @@ @functions { - [Parameter] private RenderFragment ItemTemplate { get; set; } - [Parameter] private IReadOnlyList Items { get; set; } + [Parameter] + private RenderFragment ItemTemplate { get; set; } + + [Parameter] + private IReadOnlyList Items { get; set; } } diff --git a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Pages/CascadingValuesParametersTabSet.razor b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Pages/CascadingValuesParametersTabSet.razor index bb71f14f831e..ddeed2c7224d 100644 --- a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Pages/CascadingValuesParametersTabSet.razor +++ b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Pages/CascadingValuesParametersTabSet.razor @@ -90,7 +90,8 @@ namespace RazorComponents.UIInterfaces </div> @@functions { - [Parameter] private RenderFragment ChildContent { get; set; } + [Parameter] + private RenderFragment ChildContent { get; set; } public ITab ActiveTab { get; private set; } @@ -136,8 +137,12 @@ namespace RazorComponents.UIInterfaces @@functions { [CascadingParameter] private TabSet ContainerTabSet { get; set; } - [Parameter] private string Title { get; set; } - [Parameter] public RenderFragment ChildContent { get; private set; } + + [Parameter] + private string Title { get; set; } + + [Parameter] + public RenderFragment ChildContent { get; private set; } private string TitleCssClass => ContainerTabSet.ActiveTab == this ? "active" : null; diff --git a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Tab.razor b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Tab.razor index 546ea0163d49..3daa012200f2 100644 --- a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Tab.razor +++ b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/Tab.razor @@ -10,8 +10,12 @@ @functions { [CascadingParameter] private TabSet ContainerTabSet { get; set; } - [Parameter] private string Title { get; set; } - [Parameter] public RenderFragment ChildContent { get; private set; } + + [Parameter] + private string Title { get; set; } + + [Parameter] + public RenderFragment ChildContent { get; private set; } private string TitleCssClass => ContainerTabSet.ActiveTab == this ? "active" : null; diff --git a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TabSet.razor b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TabSet.razor index b0954e92940a..1a95850f5362 100644 --- a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TabSet.razor +++ b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TabSet.razor @@ -13,7 +13,8 @@ @functions { - [Parameter] private RenderFragment ChildContent { get; set; } + [Parameter] + private RenderFragment ChildContent { get; set; } public ITab ActiveTab { get; private set; } diff --git a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TableTemplate.razor b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TableTemplate.razor index b7393be16699..bf5768000b7a 100644 --- a/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TableTemplate.razor +++ b/aspnetcore/razor-components/common/samples/3.x/RazorComponents/Components/TableTemplate.razor @@ -16,8 +16,15 @@ @functions { - [Parameter] private RenderFragment TableHeader { get; set; } - [Parameter] private RenderFragment RowTemplate { get; set; } - [Parameter] private RenderFragment TableFooter { get; set; } - [Parameter] private IReadOnlyList Items { get; set; } + [Parameter] + private RenderFragment TableHeader { get; set; } + + [Parameter] + private RenderFragment RowTemplate { get; set; } + + [Parameter] + private RenderFragment TableFooter { get; set; } + + [Parameter] + private IReadOnlyList Items { get; set; } } diff --git a/aspnetcore/razor-components/get-started.md b/aspnetcore/razor-components/get-started.md index b0d0428348c4..fea9dc33cbb7 100644 --- a/aspnetcore/razor-components/get-started.md +++ b/aspnetcore/razor-components/get-started.md @@ -5,7 +5,7 @@ description: Learn how to get started with Razor Components by creating and modi monikerRange: '>= aspnetcore-3.0' ms.author: riande ms.custom: mvc -ms.date: 04/07/2019 +ms.date: 04/14/2019 uid: razor-components/get-started --- # Get started with Razor Components @@ -157,7 +157,7 @@ To add a parameter to the Counter component, update the component's `@functions` *WebApplication1/Components/Pages/Counter.razor*: -[!code-cshtml[](get-started/samples_snapshot/3.x/Counter2.razor?highlight=4,8)] +[!code-cshtml[](get-started/samples_snapshot/3.x/Counter2.razor?highlight=4-5,9)] Specify an `IncrementAmount` parameter in the Home component's `` element using an attribute. diff --git a/aspnetcore/razor-components/get-started/samples_snapshot/3.x/Counter2.razor b/aspnetcore/razor-components/get-started/samples_snapshot/3.x/Counter2.razor index bf5adca257fb..0e44b4653942 100644 --- a/aspnetcore/razor-components/get-started/samples_snapshot/3.x/Counter2.razor +++ b/aspnetcore/razor-components/get-started/samples_snapshot/3.x/Counter2.razor @@ -1,7 +1,8 @@ @functions { private int currentCount = 0; - [Parameter] private int IncrementAmount { get; set; } = 1; + [Parameter] + private int IncrementAmount { get; set; } = 1; private void IncrementCount() {