0
votes

Unhandled Promise rejection: Template parse errors: Parser Error: Unexpected token let at column 1 in [let option of questionForm.controls.Options.controls; index as j] in MultiplechoiceComponent@0:126 ("Form"> Options ][ngFor]="let option of questionForm.controls.Options.controls; index as j">

1

1 Answers

0
votes

If you are using Angular (not AngularJS) and TypeScript, try the following:

*ngFor="let option of questionForm.controls.Options.controls; let j = index"