@anguless/angulux/bind
Bind
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 |
|---|---|---|---|
| agl | { [key: string]: any } | undefined | not documented | Dynamic attributes, properties, and event listeners to be applied to the host element. Each key is set as an attribute, and also assigned to the element property of the same name when one exists. Values that the browser would parse as markup (`innerHTML`, `outerHTML`, `srcdoc`) or follow as a URL (`href`, `src`, `action`, `formaction`, `xlink:href`) go through Angular's sanitizer first, exactly as they would in a template binding. To write such a value unsanitized on purpose, pass a value from `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl`. An `on*` key installs a listener when its value is a function; any other `on*` value is ignored, because as an attribute it would be script. |