Can you use array.filter in an Angular binding?
<p>I have this line in my template:</p>

<pre><code>&lt;span&gt;{{ data.things.find(r =&gt; { return r.id == 5 }).description }}&lt;/span&gt;
</code></pre>

<p>When I run this, I get the following error:</p>

<pre><code>Parser Error: Bindings cannot contain assignments at column...
</code></pre>

<p>Does this mean you can't use <code>array.find</code> from within a binding?</p>

<p>I know my objects have values, and the expression evaluates in the watch window.
Any suggestions?</p>

<p>Edit:
While <a href="https://stackoverflow.com/questions/32882013/angular-2-sort-and-filter">this question</a> and its answer will get around the issue, I don't think they are duplicates. That question is specific to filtering to a smaller list, perhaps one record, where as my problem is getting one record everytime. @Thierry-Templier's answer looks good in this regard, and I like how clean it makes the html.</p>