Thanks a lot for the answer I tried what you said but the datalist doesn’t exist for the ngFor if I don’t load it via transloco beforehand.

I started over my component and I cleaned up my import. I managed to make it work (even if I don’t really know why) by adding:

datalist: any;

in my component.ts, I should better type it later.

My best bet on what is happening is that when i call *transloco="let datalist; read: 'Datalist'"> in my template it initialize the datalist in my component.ts, so that when I call the ngFor it finds the datalist with values in the component.ts. Anyway thanks a lot !

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top