diff --git a/aspnetcore/mvc/views/view-components.md b/aspnetcore/mvc/views/view-components.md index 5b7993d457..174f711e3e 100644 --- a/aspnetcore/mvc/views/view-components.md +++ b/aspnetcore/mvc/views/view-components.md @@ -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: