Skip to content

Commit

Permalink
Update view-components.md (#5872)
Browse files Browse the repository at this point in the history
altering range of code displayed to remove hanging closing } and closing table tag
  • Loading branch information
jconrey authored and scottaddie committed Apr 4, 2018
1 parent 59c9061 commit 31d238f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/mvc/views/view-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ If you want compile time safety, you can replace the hard-coded view component n

Add a `using` statement to your Razor view file, and use the `nameof` operator:

[!code-cshtml[](view-components/sample/ViewCompFinal/Views/Todo/IndexNameof.cshtml?range=1-6,33-)]
[!code-cshtml[](view-components/sample/ViewCompFinal/Views/Todo/IndexNameof.cshtml?range=1-6,35-)]

## Additional resources

Expand Down

0 comments on commit 31d238f

Please sign in to comment.