Skip to content

Commit d312838

Browse files
committed
Updates
1 parent 8be99a7 commit d312838

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

aspnetcore/get-started.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Obtain and install the latest .NET SDK at [Download .NET](https://dotnet.microso
3030

3131
## Create a web app project
3232

33-
Open a command shell to a suitable location for the sample app and enter the following command to create a Blazor Web App. The `-o|--output` option creates a folder for the project and names the project `BlazorSample`:
33+
Open a command shell to a suitable location for the sample app and use the following command to create a Blazor Web App. The `-o|--output` option creates a folder for the project and names the project `BlazorSample`:
3434

3535
```dotnetcli
3636
dotnet new blazor -o BlazorSample
@@ -44,27 +44,25 @@ Change the directory to the `BlazorSample` folder with the following command:
4444
cd BlazorSample
4545
```
4646

47-
Execute the following command to run the app:
47+
The `dotnet watch` command runs the app and opens your default browser to the app's landing page:
4848

4949
```dotnetcli
5050
dotnet watch
5151
```
5252

53-
The `dotnet watch` command runs the app and opens your default browser to the app's landing page.
53+
The browser opens to the app's home page.
5454

55-
The browser shows the app's home page.
56-
57-
Using the app's sidebar navigation, visit the Counter page, where you can select the **:::no-loc text="Click me":::** button to increment the counter. Visit the Weather page to see a page load weather data.
55+
Using the app's sidebar navigation, visit the Counter page, where you can select the **:::no-loc text="Click me":::** button to increment the counter.
5856

5957
## Edit a Razor component
6058

61-
Leave the browser open with the app loaded. By using the `dotnet watch` command to run the app, you can make changes to the app's markup and code and see the changes immediately reflected in the browser.
59+
Leave the browser open with the Counter page loaded. By using the `dotnet watch` command to run the app, you can make changes to the app's markup and code and see the changes immediately reflected in the browser.
6260

6361
The `Counter` Razor component that renders the Counter web page is located at `Components/Pages/Counter.razor` in the project.
6462

65-
Open the `Counter.razor` file in a text editor and note a few interesting lines that render content and make the component's counter feature work:
63+
Open the `Counter.razor` file in a text editor and note a few interesting lines that render content and make the component's counter feature work.
6664

67-
The component starts with a line that indicates the component's relative path (`/counter`):
65+
The file starts with a line that indicates the component's relative path (`/counter`):
6866

6967
```razor
7068
@page "/counter"
@@ -76,7 +74,7 @@ The title of the page is set by `<PageTitle>` tags:
7674
<PageTitle>Counter</PageTitle>
7775
```
7876

79-
An H1 heading is displayed:
77+
An H1 heading is displayed to the user:
8078

8179
```razor
8280
<h1>Counter</h1>
@@ -88,7 +86,7 @@ A paragraph element (`<p>`) displays the current count, which is stored in a var
8886
<p role="status">Current count: @currentCount</p>
8987
```
9088

91-
A button (`<button>`) allows the user to call a C# method named `IncrementCount` when the button is selected:
89+
A button (`<button>`) allows the user to increment the counter, which occurs when the button click executes a C# method named `IncrementCount`:
9290

9391
```razor
9492
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@@ -127,7 +125,7 @@ Change the line so that `currentCount` is incremented by a value of ten each tim
127125

128126
Save the file.
129127

130-
As soon as you save the file, the running app is updated automatically because you used the `dotnet watch` command to run the app. Go back to the app in the browser with the Counter page loaded and select the **:::no-loc text="Click me":::** button. Witness how the counter now increments by ten.
128+
As soon as you save the file, the running app is updated automatically because you used the `dotnet watch` command. Go back to the app in the browser with the Counter page loaded and select the **:::no-loc text="Click me":::** button. Witness how the counter now increments by ten.
131129

132130
To shut down the app:
133131

0 commit comments

Comments
 (0)