Fix typos in "Tag Helpers in ASP.NET Core" (#24344)

pull/24353/head
GitHubPang 2021-12-17 16:48:30 +08:00 committed by GitHub
parent ddb5f798f9
commit 203d0d4a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -159,9 +159,9 @@ Consider writing an HTML `<label>` element. As soon as you enter `<l` in the Vis
![After typing "l" on the keyboard, IntelliSense suggests a list of possible tag names with "label" selected.](intro/_static/label.png)
Not only do you get HTML help, but the icon (the "@" symbol with "<>" under it).
Not only do you get HTML help, but also the icon (the "@" symbol with "<>" under it).
![The the "@" symbol with "<>" under it.](intro/_static/tagSym.png)
![The "@" symbol with "<>" under it.](intro/_static/tagSym.png)
The icon identifies the element as targeted by Tag Helpers. Pure HTML elements (such as the `fieldset`) display the "<>" icon.
@ -181,7 +181,7 @@ As soon as a Tag Helper attribute is entered, the tag and attribute fonts change
![The user selected "asp-for", which is now in bold purple because the user isn't using the Dark theme.](intro/_static/labelaspfor2.png)
You can enter the Visual Studio *CompleteWord* shortcut (Ctrl +spacebar is the [default](/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio) inside the double quotes (""), and you are now in C#, just like you would be in a C# class. IntelliSense displays all the methods and properties on the page model. The methods and properties are available because the property type is `ModelExpression`. In the image below, I'm editing the `Register` view, so the `RegisterViewModel` is available.
You can enter the Visual Studio *CompleteWord* shortcut (Ctrl +spacebar is the [default](/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio)) inside the double quotes (""), and you are now in C#, just like you would be in a C# class. IntelliSense displays all the methods and properties on the page model. The methods and properties are available because the property type is `ModelExpression`. In the image below, I'm editing the `Register` view, so the `RegisterViewModel` is available.
![The user types "e" in the value for the "asp-for" attribute. IntelliSense suggests possible completion with "Email" selected.](intro/_static/intellemail.png)
@ -253,7 +253,7 @@ The Visual Studio editor helps you write **all** of the markup in the Tag Helper
* Web Server controls include automatic browser detection. Tag Helpers have no knowledge of the browser.
* Multiple Tag Helpers can act on the same element (see [Avoiding Tag Helper conflicts](xref:mvc/views/tag-helpers/authoring#avoid-tag-helper-conflicts) ) while you typically can't compose Web Server controls.
* Multiple Tag Helpers can act on the same element (see [Avoiding Tag Helper conflicts](xref:mvc/views/tag-helpers/authoring#avoid-tag-helper-conflicts)) while you typically can't compose Web Server controls.
* Tag Helpers can modify the tag and content of HTML elements that they're scoped to, but don't directly modify anything else on a page. Web Server controls have a less specific scope and can perform actions that affect other parts of your page; enabling unintended side effects.