Skip to content

Commit

Permalink
Update view-components.md (#8108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-Anderson authored Aug 15, 2018
1 parent d596162 commit aa06c90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aspnetcore/mvc/views/view-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ A view component defines its logic in an `InvokeAsync` method that returns an `I

The runtime searches for the view in the following paths:

* Views/\<controller_name>/Components/\<view_component_name>/\<view_name>
* Views/Shared/Components/\<view_component_name>/\<view_name>
* /Pages/Components/<component name>/\<view_name>
* Views/\<controller_name>/Components/\<view_component_name>/\<view_name>
* Views/Shared/Components/\<view_component_name>/\<view_name>

The default view name for a view component is *Default*, which means your view file will typically be named *Default.cshtml*. You can specify a different view name when creating the view component result or when calling the `View` method.

Expand Down

0 comments on commit aa06c90

Please sign in to comment.