NG0303: Can't bind to 'ngForAs' since it isn't a known property of 'tr'

Hello,
I am having a problem on a For loop in Angular, I have this error showing

NG0303: Can't bind to 'ngForAs' since it isn't a known property of 'tr'.

I have imported the BrowserModule into my application, and the CommonModule on my page.

I don’t understand where this problem can come from.

Thank’s for help !

Assuming you are on Angular, then that directive does not exist

NgFor and ngForOf seem to only exist

Where did u get ngForAs from?

Here is my code

    <tr *ngFor="let categorie as table_categorie">

I am using a * ngFor

Well, then there is likely an issue with your imports

Can’t tell exactly - given limited code presented.

The component’s module should include the relevant modules (I guess common and maybe even browser).

If I were you I would try to make it work on another page or even separate project and then compare/understand

By any chance the component with the error is a modal or popover?

It is a tab.

I imported all the necessary elements so it’s very surprising

try *ngFor=“let categorie of table_categorie”

1 Like

It’s work ! Thank’s !!

glad to hear that! :slight_smile: