to both inputs, that set the <code>User.current.firstName</code> and <code>User.current.lastName</code> properties when a user types.</p>
<p>In addition, we declared that a <code>User.save</code> method should be called when the &quot;Save&quot; button is pressed. Let&#39;s implement that method:</p>
<pre><code class="lang-javascript">// src/models/User.js
var m = require(&quot;mithril&quot;)

var User = {
    list: [],
    loadList: function() {
        return m.request({
            method: &quot;GET&quot