docs: fix styles in binding guides (#40182)

Fix styling issues with the visual representation of the content

PR Close #40182
This commit is contained in:
Aristeidis Bampakos 2020-12-17 22:44:01 +02:00 committed by Joey Perrott
parent f7642ceff3
commit eae07e10aa
2 changed files with 3 additions and 1 deletions

View File

@ -328,8 +328,10 @@ There are cases where you need to differentiate the behavior of a [Component](ap
The [Attribute](api/core/Attribute) parameter decorator is great for passing the value of an HTML attribute to a component/directive constructor via [dependency injection](guide/dependency-injection). The [Attribute](api/core/Attribute) parameter decorator is great for passing the value of an HTML attribute to a component/directive constructor via [dependency injection](guide/dependency-injection).
<div class="alert is-helpful"> <div class="alert is-helpful">
The injected value captures the value of the specified HTML attribute at that moment. The injected value captures the value of the specified HTML attribute at that moment.
Future updates to the attribute value are not reflected in the injected value. Future updates to the attribute value are not reflected in the injected value.
</div> </div>
<code-example <code-example

View File

@ -85,7 +85,7 @@ However, the value of the attribute is irrelevant, which is why you cannot enabl
To control the state of the button, set the `disabled` property instead. To control the state of the button, set the `disabled` property instead.
Property and attribute comparison #### Property and attribute comparison
Though you could technically set the `[attr.disabled]` attribute binding, the values are different in that the property binding must be a boolean value, while its corresponding attribute binding relies on whether the value is `null` or not. Though you could technically set the `[attr.disabled]` attribute binding, the values are different in that the property binding must be a boolean value, while its corresponding attribute binding relies on whether the value is `null` or not.
Consider the following: Consider the following: