Binding Error

Developing a huge single page application is difficult. Sometimes errors creep in. Being able to gracefully react to these errors is important. One type of error is binding errors - errors that appear because some data binding wasn't correctly defined. Using either onBindingError: on the page or pager.onBindingError.add you can identify these errors during runtime.

<div data-bind="page: {id: 'start'}">
    <div data-bind="text: thisPropertyDoesNotExist"></div>
</div>
where the JavaScript is
pager.onBindingError.add(function(event) {
    var page = event.page;
    $(page.element).empty().append('<div class="alert"> Error Loading Page</div>');
});
Back to Failed Navigation Read about Load External Content