Add missing `await` to example code (#9338)

Fixes #9336 

<!--
When creating a new PR, please do the following:

* Reference the issue number if there is one, e.g.:

Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description allows GitHub to automatically close the issue when this PR is merged.

NOTE: This is a comment; please type your descriptions above or below it.
-->
pull/9340/head
Luke Latham 2018-10-30 15:41:28 -05:00 committed by Scott Addie
parent fc1d9f663e
commit 7ede6dfbd2
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ We recommend you name the view file *Default.cshtml* and use the *Views/Shared/C
To use the view component, call the following inside a view:
```cshtml
@Component.InvokeAsync("Name of view component", {Anonymous Type Containing Parameters})
@await Component.InvokeAsync("Name of view component", {Anonymous Type Containing Parameters})
```
The parameters will be passed to the `InvokeAsync` method. The `PriorityList` view component developed in the article is invoked from the *Views/Todo/Index.cshtml* view file. In the following, the `InvokeAsync` method is called with two parameters: