CHAPTER 7

image

Knockout

Complex systems are characterized by simple elements, acting on local knowledge with local rules, giving rise to complicated, patterned behavior.

—David West

Knockout is a JavaScript library concerned with binding HTML markup to JavaScript objects. It is not a full framework. It has no state router, HTTP AJAX capability, internal message bus, or module loader. Instead, it focuses on two-way data binding between JavaScript objects and the DOM. When the data in a JavaScript application changes, HTML elements bound to Knockout views receive automatic updates. Likewise, when DOM input occurs--through form field manipulation, for ...

Get JavaScript Frameworks for Modern Web Dev now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.