title: NgFor with Comma separated Values
body: <p>I have a user entered string in this format</p>
  
  <pre><code>string = "1,5,12,66"
  </code></pre>
  
  <p>I want to simply do a ngFor over the values <code>1 5 12 66</code> and my code is</p>
  
  <pre><code>&lt;div *ngFor="let number of arrString" ng-if="number!=','"&gt;
      &lt;a class="item item-icon-right font-12"&gt;
         &lt;b&gt;{{number}}&lt;/b&gt;
      &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The problem that my code shows</p>
  
  <blockquote>
    <p>1</p>
    
    <p>5</p>
    
    <p>1 (should show 12)</p>
    
    <p>2</p>
    
    <p>6</p>
    
    <p>6 (should show 66)</p>
  </blockquote>
  
  <p>Any help would be appreciated</p>