Aurelia refresh property dependencies
<p>Validate if checkbox should be displayed in html page:</p>

<pre><code>get canPerformCommand() {
    let r = false;
    let valids = ['Success', 'Error'];

    if (this.requests.length == 0) return false;

    if (valids.indexOf(this.myresult[0].requestStatus) &gt; 0) {
        r = true;
    }
    return r;
}
</code></pre>

<p>Html page:</p>

<pre><code>&lt;span if.bind="canPerformCommand" class="panel-heading-buttons"&gt;
    &lt;button click.trigger="confirm()"&gt;Confirm&lt;/button&gt;
&lt;/span&gt;
</code></pre>

<p>Search:</p>

<pre><code>    return this.myService.getRequests()
        .then(data =&gt; {
            this.requests = data

            //Somehow refresh canPerformCommand here?
        });
</code></pre>

<p><code>this.requests</code> will be empty on first page load, resulting in <code>canPerformCommand = false</code>. 
I want to refresh <code>canPerformCommand</code> when using the search function.</p>

<p>Currently <code>canPerformCommand</code> will not refresh itself after a search has been done.</p>

<p><strong>How do I refresh <code>canPerformCommand</code> after search using Property Dependencies?</strong></p>