Angular Templates - inline expressions vs calling to function : <p>Is there any difference between those two: </p>

<pre><code>&lt;li [ngClass]="{disabledField: condition1 &amp;&amp; condition2 &amp;&amp; condition3}"&gt;Click&lt;/li&gt;
</code></pre>

<p>vs</p>

<pre><code>&lt;li [ngClass]="{disabledField: shouldDisableField()}"&gt;Click&lt;/li&gt;
</code></pre>

<p>and in component class:</p>

<pre><code>shouldDisableField(): boolean{
  return this.condition1 &amp;&amp; this.condition2 &amp;&amp; this.condition3;
}
</code></pre>
