From 31d238ffdd2ad189ba10e8d82478d8febf64edf5 Mon Sep 17 00:00:00 2001 From: jconrey Date: Wed, 4 Apr 2018 10:48:12 -0400 Subject: [PATCH] Update view-components.md (#5872) altering range of code displayed to remove hanging closing } and closing table tag --- aspnetcore/mvc/views/view-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/mvc/views/view-components.md b/aspnetcore/mvc/views/view-components.md index da93b38171ac..4d5057b69234 100644 --- a/aspnetcore/mvc/views/view-components.md +++ b/aspnetcore/mvc/views/view-components.md @@ -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