diff --git a/aspnetcore/blazor/call-javascript-from-dotnet.md b/aspnetcore/blazor/call-javascript-from-dotnet.md index ce2a4c56a7df..58ae70f9b0e0 100644 --- a/aspnetcore/blazor/call-javascript-from-dotnet.md +++ b/aspnetcore/blazor/call-javascript-from-dotnet.md @@ -71,8 +71,8 @@ To use the abstraction, adopt any of the f In the client-side sample app that accompanies this topic, two JavaScript functions are available to the app that interact with the DOM to receive user input and display a welcome message: -* `showPrompt` – Produces a prompt to accept user input (the user's name) and returns the name to the caller. -* `displayWelcome` – Assigns a welcome message from the caller to a DOM object with an `id` of `welcome`. +* `showPrompt`: Produces a prompt to accept user input (the user's name) and returns the name to the caller. +* `displayWelcome`: Assigns a welcome message from the caller to a DOM object with an `id` of `welcome`. *wwwroot/exampleJsInterop.js*: diff --git a/aspnetcore/blazor/call-web-api.md b/aspnetcore/blazor/call-web-api.md index b2fd0edd9c23..7cc93522d207 100644 --- a/aspnetcore/blazor/call-web-api.md +++ b/aspnetcore/blazor/call-web-api.md @@ -57,9 +57,9 @@ The client's base address is set to the originating server's address. Inject an In the following examples, a Todo web API processes create, read, update, and delete (CRUD) operations. The examples are based on a `TodoItem` class that stores the: -* ID (`Id`, `long`) – Unique ID of the item. -* Name (`Name`, `string`) – Name of the item. -* Status (`IsComplete`, `bool`) – Indication if the Todo item is finished. +* ID (`Id`, `long`): Unique ID of the item. +* Name (`Name`, `string`): Name of the item. +* Status (`IsComplete`, `bool`): Indication if the Todo item is finished. ```csharp private class TodoItem @@ -72,7 +72,7 @@ private class TodoItem JSON helper methods send requests to a URI (a web API in the following examples) and process the response: -* – Sends an HTTP GET request and parses the JSON response body to create an object. +* : Sends an HTTP GET request and parses the JSON response body to create an object. In the following code, the `todoItems` are displayed by the component. The `GetTodoItems` method is triggered when the component is finished rendering ([OnInitializedAsync](xref:blazor/lifecycle#component-initialization-methods)). See the sample app for a complete example. @@ -88,7 +88,7 @@ JSON helper methods send requests to a URI (a web API in the following examples) } ``` -* – Sends an HTTP POST request, including JSON-encoded content, and parses the JSON response body to create an object. +* : Sends an HTTP POST request, including JSON-encoded content, and parses the JSON response body to create an object. In the following code, `newItemName` is provided by a bound element of the component. The `AddItem` method is triggered by selecting a `