title: call a method inside a ngFor in my html (angular6)
body: <p>I'm new to stackOverflow, couldn't find an answer to my question.
  I'm trying to use an ngFor inside an ngFor.
  Is it possible to call a method inside an *ngFor: 
  something like this : </p>
  
  <pre><code>    &lt;div *ngFor="let nbStar of myMethod(skill.level)"&gt;
  </code></pre>
  
  <p>where myMethod is using data from my first ngFor as parameter to generate an array of numbers.</p>
  
  <p>my code:</p>
  
  <pre><code>&lt;div *ngFor="let skill of skills"&gt;
          &lt;div class="picture"&gt;
              &lt;img src="{{skill.skillPicture}}"/&gt;
          &lt;/div&gt;  
        &lt;div class="title-skill"&gt;
          &lt;h3&gt;{{skill.skillName | uppercase}} &lt;/h3&gt;
          Niveau: 
          &lt;div *ngFor="let nbStar of generateStarsArray(skill.level)"&gt;
             &lt;i class="fas fa-star"&gt;&lt;/i&gt;
          &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks a lot for any clues.</p>