@anguless/angulux/bind
bind
1 declarations1 demos
import
import { BindModule } from '@anguless/angulux/bind';Basic
aglBind applies a whole object of attributes in one binding.
<input aglInputText [aglBind]="attributes" />API
Generated from the committed corpus, which check:corpus holds to the built library.
Bind
directive[aglBind]Bind directive provides dynamic attribute, property, and event listener binding functionality.
| Input | Type | Default | Description |
|---|---|---|---|
| aglBind | { [key: string]: any } | undefined | not documented | Dynamic attributes, properties, and event listeners to be applied to the host element. TRUSTED INPUT ONLY. Every key is applied to the DOM as given — set as an attribute, and additionally assigned to the element property of the same name when one exists. No sanitizer runs on either path, so a key such as `innerHTML` writes markup and an `on*` key can install a handler. This is the mechanism the passthrough API is built on; it is safe only for values you control, and never for values that reached you from a user. |