Angular 2: How to write a for loop, not a foreach loop
<p>Using Angular 2, I want to duplicate a line in a template multiple times. Iterating over an object is easy, <code>*ngFor=&quot;let object of objects&quot;</code>. However, I want to run a simple <code>for</code> loop, not a <code>foreach</code> loop. Something like (pseudo-code):</p>
<pre><code>{for i = 0; i &lt; 5; i++}
  &lt;li&gt;Something&lt;/li&gt;
{endfor}
</code></pre>
<p>How would I do this?</p>