title: Cannot use *ngFor in library
body: <p>I have created an Angular library using:</p>
  
  <ol>
  <li>ng new my-workspace --create-application=false </li>
  <li>cd my-workspace</li>
  <li>ng generate library my-lib</li>
  </ol>
  
  <p>The library works. However when I modify the template to use *ngFor as follows:</p>
  
  <p>template: </p>
  
  <pre><code>&lt;div *ngFor="let item of items"&gt;
    my-lib works!
  &lt;/div&gt;
  </code></pre>
  
  <p>I get an error: </p>
  
  <blockquote>
    <p>No directive is matched on attribute ngFor</p>
  </blockquote>
  
  <p>I have had no success with various suggestions found so far. If you know how to get a new clean library configured to use directives such as *ngFor I would greatly appreciate your advice.
  I have created the library with both Angular 8 and 9 with the result being the same.</p>
  
  <p>Kind regards</p>
  
  <p>Sean</p>