This document provides an overview of key concepts in Knockout including observables, computed values, observable arrays, built-in bindings, templates, and custom binding handlers. It demonstrates how Knockout separates behavior and structure through declarative bindings to observables, and how built-in and custom bindings work. Resources for further learning about JavaScript and Knockout are listed at the end.
22. attr checked click css disable
enable event hasfocus html options
optionsText optionsValue selectedOptions style submit
text uniqueName value visibletext value
click disable
enable
attr
Display and state bindings
Text and value bindingsBindings for specific attributes
visible
event
Event bindings
23.
24. With and Without Knockout
Observable
Computed
ObservableArray
Built In Bindings
Templates
25. • If truthy conditionif
• If falsy conditionifnot
• Execute for each item in a listforeach
• Shortcut to execute for the objectwith
35. element, valueAccessor, allBindingsAccessor, viewModel
valueAccessor
element
element, valueAccessor, allBindingsAccessor, viewModel
valueAccessor
element element
Bound DOM
element
What is passed
to the binding
All other bindings
on same element
The
viewmodel
36.
37. With and Without Knockout
Observable
Computed
ObservableArray
Built In Bindings
Templates