 })
        .then(function(result) {
            User.current = result
        })
    }
}

module.exports = User
</code></pre>
<p>Notice we added a <code>User.current</code> property, and a <code>User.load(id)</code> method which populates that property. We can now populate the <code>UserForm</code> view using this new method:</p>
<pre><code class="lang-javascript">// src/views/UserForm.js
var m = require(&quot;mithril&quot;)
var User = require(&quot;../models/User&quot;)

module.exports = {
    oninit: fun