KnockoutJS – Declarative Bindings

Declarative Bindings

To connect data to UI declarative bindings are used. As bindings and Observables both are different, using normal javascript object you can bind view.

Declarative Bindings consists of two values i.e. name and value:

Full name: <input data-bind=”value: fullName, valueUpdate: ‘afterkeydown'” />

Here when each key is pressed value will be updated.

Leave a Reply

Your email address will not be published. Required fields are marked *