0

I got a static variable as :

static params = new FormArray([]);

and i call it this way :

<div *ngFor="let param of params; index as i"> ... </div>

But i have the following error displayed :

Property 'params' is a static member of type 'SeeDataFrameComponent'

So why can't we iterate with *ngFor in a static Array (formArray) ?

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.