Currently the element the page data-binding is on, is in a different context than its child nodes. The child context is the context that the viewModel is bound to, not the element that the page data-binding is on.
The viewModel should be able to control its own events (everything after beforeSourceLoad and onSourceError), to make it a complete standalone component - instead of having the parent context create appropriate event handlers for it.
Currently the element the
page
data-binding is on, is in a different context than its child nodes. The child context is the context that theviewModel
is bound to, not the element that thepage
data-binding is on.The
viewModel
should be able to control its own events (everything afterbeforeSourceLoad
andonSourceError
), to make it a complete standalone component - instead of having the parent context create appropriate event handlers for it.