Skip to content

useReactiveBinding

Import

import { mix, useReactiveBinding, BoltElement } from 'c/bolt';

Usage

export default class myLwc extends mix(
[useReactiveBinding],
BoltElement
) { }

Methods

bind(event) : void

Example

Tuple as the resolve condition
export default class myLwc extends mix(
[useReactiveBinding],
BoltElement
) {
@track value = 'foo';
}
<lightning-input
data-bind="value"
value={value}
onchange={bind}
></lightning-input>