title: How to get a reverse index in ngFor angular?
body: <p>I am using the latest version of Angular and have an array "myarray" with 3 objects.</p>
  
  <p>I want to make it so that I have divs looking like this:</p>
  
  <pre><code>&lt;div id="num2"&gt;
  &lt;div id="num1"&gt;
  &lt;div id="num0"&gt;
  </code></pre>
  
  <p>Usually with *ngFor I do..</p>
  
  <pre><code>&lt;div *ngFor="let something of myarray; let i = index" [attr.id]="'num'+i"&gt;
  </code></pre>
  
  <p>The problem is that creates an incrementally increasing so it is going from 0 to 2 instead of the reverse...</p>
  
  <pre><code>&lt;div id="num0"&gt;
  &lt;div id="num1"&gt;
  &lt;div id="num2"&gt;
  </code></pre>
  
  <p>How can I make it such that it is decreasing?</p>