Magento 2, KnockoutJS ViewModels, and Scope Binding
A self answer from me over on the Magento StackExchange. The short version – Magento applies knockout bindings without a default view model. The Magento_Ui/js/core/app
module/program, embeded via x-magento-init
, adds view model objects to the uiRegistry
. Finally, Magento has implementd a custom scope
binding which developers can use to load a view model from the uiRegistry
and apply it to any sub-nodes.