Skip to content

Commit

Permalink
Fix indentation issue in "Component parameters" section's numb… (#16524)
Browse files Browse the repository at this point in the history
* Fix indentation issue in list

* Add missing words
  • Loading branch information
scottaddie committed Jan 13, 2020
1 parent 4961eea commit de22994
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions aspnetcore/tutorials/build-your-first-blazor-app.md
Expand Up @@ -5,7 +5,7 @@ description: Build a Blazor app step-by-step.
monikerRange: '>= aspnetcore-3.0'
ms.author: riande
ms.custom: mvc
ms.date: 12/05/2019
ms.date: 01/13/2020
no-loc: [Blazor]
uid: tutorials/first-blazor-app
---
Expand Down Expand Up @@ -66,19 +66,19 @@ Include a component in another component using an HTML syntax.

Components can also have parameters. Component parameters are defined using public properties on the component class with the `[Parameter]` attribute. Use attributes to specify arguments for a component in markup.

1. Update the component's `@code` C# code:
1. Update the component's `@code` C# code as follows:

* Add a public `IncrementAmount` property with the `[Parameter]` attribute.
* Change the `IncrementCount` method to use the `IncrementAmount` when increasing the value of `currentCount`.
* Change the `IncrementCount` method to use the `IncrementAmount` property when increasing the value of `currentCount`.

*Pages/Counter.razor*:

[!code-razor[](build-your-first-blazor-app/samples_snapshot/3.x/Counter.razor?highlight=13,17)]

<!-- Add back when supported.
> [!NOTE]
> From Visual Studio, you can quickly add a component parameter by using the `para` snippet. Type `para` and press the `Tab` key twice.
-->
<!-- Add back when supported.
> [!NOTE]
> From Visual Studio, you can quickly add a component parameter by using the `para` snippet. Type `para` and press the `Tab` key twice.
-->

1. Specify an `IncrementAmount` parameter in the `Index` component's `<Counter>` element using an attribute. Set the value to increment the counter by ten.

Expand Down

0 comments on commit de22994

Please sign in to comment.