Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / angular/src/public-api / bindAttribute

Function: bindAttribute() ​

bindAttribute(source, target, attribute, options?): DirectBinding

Defined in: projects/libraries/streamix/angular/src/lib/direct-binding.ts:141

Directly binds a reactive source to an element attribute.

null / undefined / false remove the attribute. true writes an empty attribute; all other values are stringified.

Parameters ​

source ​

DependencySource<unknown>

target ​

Element

attribute ​

string

options? ​

DirectBindingOptions = {}

Returns ​

DirectBinding

Released under the MIT License.