<!DOCTYPE html>
<html>
<head>
    <title>withOnShow should lazy bind a new view model to the page</title>
    <script type="text/javascript" src="../lib/require.js"></script>

    <link rel="stylesheet" href="../lib/qunit.css"/>
</head>
<body>

<div id="qunit"></div>

<div data-bind="page: {id: 'user', withOnShow: requireVM('testVM')}">
    <div id="name" data-bind="text: name"></div>
</div>


<script type="text/javascript">

    requirejs.config({
        shims: {
            hashchange: ['jquery']
       