-
Notifications
You must be signed in to change notification settings - Fork 0
Binding: Attribute
Jovan Gerodetti edited this page Nov 14, 2020
·
2 revisions
You can create a binding to an attribute as follows:
<input bind-attr(value)="view.content"></div>
If you'd like attribute changes to be applied to your view, i.e. two-way binding, you have to specify the name of an event:
<input bind-attr(value)="view.content=input"></div>
Your view will then be updated on each input
event.
Binding Name | Expression Type | Value Type |
---|---|---|
bind-attr | object expression | { name: string, value: any } |
<div bind-attr="{ name: disabled, value: view.isDisabled }"></div>
-
Bindings
-
Traits
-
Prototypes
-
How To