GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — twoWayBinding • Angular

API

function twoWayBinding(
  publicName: string,
  value: WritableSignal<unknown>,
): Binding;
@parampublicNamestring

Public name of the two-way compatible input.

@paramvalueWritableSignal<unknown>

Writable signal from which to get the current value and to which to write new values.

Usage example

In this example we create an instance of the MyCheckbox component and bind to its value input using a two-way binding.

const checkboxValue = signal('');

createComponent(MyCheckbox, {
bindings: [
twoWayBinding('value', checkboxValue),
],
});
@returnsBinding
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.