From 798520e785abd7e8a6546437aab8dfedd2a53d30 Mon Sep 17 00:00:00 2001 From: Daniel Vicarel Date: Thu, 13 Jul 2017 17:25:43 -0400 Subject: [PATCH] Clarified some language in the 'Controlling Tag Helper scope with the *_ViewImports.cshtml* file' section. (#3712) --- aspnetcore/mvc/views/tag-helpers/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/mvc/views/tag-helpers/intro.md b/aspnetcore/mvc/views/tag-helpers/intro.md index 4a249b9ac6..1637a18c8e 100644 --- a/aspnetcore/mvc/views/tag-helpers/intro.md +++ b/aspnetcore/mvc/views/tag-helpers/intro.md @@ -93,7 +93,7 @@ The `@removeTagHelper` has the same two parameters as `@addTagHelper`, and it re ### Controlling Tag Helper scope with the *_ViewImports.cshtml* file -You can add a *_ViewImports.cshtml* to any view folder, and the view engine adds the directives from that *_ViewImports.cshtml* file to those contained in the *Views/_ViewImports.cshtml* file. If you added an empty *Views/Home/_ViewImports.cshtml* file for the *Home* views, there would be no change because the *_ViewImports.cshtml* file is additive. Any `@addTagHelper` directives you add to the *Views/Home/_ViewImports.cshtml* file (that are not in the default *Views/_ViewImports.cshtml* file) would expose those Tag Helpers to views only in the *Home* folder. +You can add a *_ViewImports.cshtml* to any view folder, and the view engine applies the directives from both that file and the *Views/_ViewImports.cshtml* file. If you added an empty *Views/Home/_ViewImports.cshtml* file for the *Home* views, there would be no change because the *_ViewImports.cshtml* file is additive. Any `@addTagHelper` directives you add to the *Views/Home/_ViewImports.cshtml* file (that are not in the default *Views/_ViewImports.cshtml* file) would expose those Tag Helpers to views only in the *Home* folder. ### Opting out of individual elements