Skip to content

@epikodelabs/streamix


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

Function: bindStyleMap() ​

bindStyleMap(source, target, options?): DirectBinding

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

Directly binds a reactive style map.

The map is diffed against the previously rendered map. Keys removed from the next value are removed from the element, while unrelated inline styles remain untouched.

Parameters ​

source ​

DependencySource<Readonly<Record<string, unknown>> | null | undefined>

target ​

HTMLElement

options? ​

DirectBindingOptions = {}

Returns ​

DirectBinding

Released under the MIT License.