title: Angular4 - displaying array element in html
body: <p>Here is my function that takes resLS as an object array. I am trying to display arr in html element using Angular 4.  But when I do {{arr}}, I don't see anything in html. I was expecting to see some element appended in arr array and I definitely see data in console. What am I missing? </p>
  
  <pre><code>findLastValueLS(resLS, name: String) {
  let index = resLS.NewDataSet.Table.findIndex(d =&gt; d.DataPointName[d.DataPointName.findIndex(DataPointName =&gt; DataPointName === name)]);
  console.log(resLS.NewDataSet.Table[index].LastValue);
  var arr = []; 
  arr.push(resLS.NewDataSet.Table[index].LastValue);
  }
  </code></pre>