title: In angular, is it possible inside the template to create a copy object?
body: <p>I have a code similiar to this:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;ng-container *ngFor=&quot;let hero of heroes&quot;&gt;
     &lt;my-comp [CurrentHero]=&quot;hero&quot;&gt;&lt;/mycomp&gt;
  &lt;/ng-container&gt;
  </code></pre>
  <p>Now, in my application heroes array never change reference, just update his own values.</p>
  <p>So, also &quot;hero&quot; never has a new reference.</p>
  <p>But, i want that the component &quot;my-comp&quot; to be with OnPush strategy. So i need that @Input CurrentHero will have every time new reference, which not happend.</p>
  <p>Is there a possibility to copy inside the tenplate the hero to be a new refernce?</p>
  <p>Something like:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;my-comp [CurrentHero]=&quot;{...hero}&quot; &gt;&lt;/my-comp&gt;
  </code></pre>
  <p>Thanks in advance.</p>