I have created an Angular library using:
- ng new my-workspace --create-application=false
- cd my-workspace
- ng generate library my-lib
The library works. However when I modify the template to use *ngFor as follows:
template:
<div *ngFor="let item of items">
my-lib works!
</div>
I get an error:
No directive is matched on attribute ngFor
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.
Kind regards
Sean