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 — inputBinding • Angular

API

function inputBinding(publicName: string, value: () => unknown): Binding;
@parampublicNamestring

Public name of the input to bind to.

@paramvalue() => unknown

Callback that returns the current value for the binding. Can be either a signal or a plain getter function.

Usage Example

In this example we create an instance of the MyButton component and bind the value of the isDisabled signal to its disabled input.

const isDisabled = signal(false);

createComponent(MyButton, {
bindings: [inputBinding('disabled', isDisabled)]
});
@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.