Skip to main content
100%

ModelJS Example

✓ Published0🌍 Public
CCurran Kelleher
Last edited May 19, 2015
Created on May 16, 2015

This example demonstrates reactive data binding with the Model.js library, showing how a full name updates automatically as users type into first and last name input fields. The page contains a simple HTML form where two text inputs feed values into a model instance, and a `model.when` listener combines the firstName and lastName properties into a fullName string. The full name is then rendered into a span element and logged to the console using D3.js selection and text methods. The example illustrates how Model.js tracks property dependencies and triggers callbacks asynchronously.

AI-generated description

This is a simple example that uses Model.js to update a "lastName" property based on properties "firstName" and "lastName" using forms.

Similar vizzes