title: Calculate difference in 2 values - Angular
body: <p>I have a table that has 3 values (old, new &amp; difference) I'm wondering how to calculate the difference in the 2 values to set the 'differenceInValues' variable. Thanks in advance!</p>
  <pre><code>&lt;td scope=&quot;row&quot;&gt;
    {{change.oldValue}}
  &lt;/td&gt;
  &lt;td scope=&quot;row&quot;&gt;
    {{change.newValue}}
  &lt;/td&gt;
  &lt;td scope=&quot;row&quot;&gt;
    {{change.differenceInValues}}
  &lt;/td&gt;
  </code></pre>