So far, we have looked at one-way and two-way bindings that set or sync data with an attribute on an HTML element. There is a different kind of binding that Knockout uses for modifying the DOM by adding or removing nodes. These are the control flow bindings, and they include
All of the control flow bindings work by actually removing their content from the DOM and creating an in-memory template from it. This template is used to add and remove the content as necessary.
Control flow bindings (except
if) also introduce a binding context hierarchy. Your root binding context is the viewmodel passed to
data-bind attributes have access to properties in the current context. Control ...