mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: Clarify sentence in attribute-directives.md
(cherry picked from commit 3cad0d644e)
This commit is contained in:
@@ -121,7 +121,7 @@ This section guides you through configuring your application so the developer ca
|
||||
<docs-code header="highlight.directive.ts (mouse-enter)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.ts" region="mouse-enter"/>
|
||||
|
||||
3. To bind to the `AppComponent.color` and fall back to "violet" as the default color, add the following HTML.
|
||||
In this case, the `defaultColor` binding doesn't use square brackets, `[]`, because it is static.
|
||||
In this case, the `defaultColor` binding doesn't use square brackets, `[]`, because the value is a static string, not a dynamic expression.
|
||||
|
||||
<docs-code header="app.component.html (defaultColor)" path="adev/src/content/examples/attribute-directives/src/app/app.component.html" region="defaultColor"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user