Heyyo I have a part of my app that requires me to allow users to include a variable number of questions in a quiz, and in each question, allow for a variable number of possible options.
When I use the buttons to add or remove options, or when I pipe my result to JSON (in the HTML below), I get this error.
ERROR Error: Cannot find control with path: '0 -> quizQuestion -> 0_0 -> wrongOptions'
at _throwError (forms.mjs:3199:11)
at setUpControl (forms.mjs:2985:13)
at FormGroupDirective.addControl (forms.mjs:4853:9)
at FormControlName._setUpControl (forms.mjs:5409:43)
at FormControlName.ngOnChanges (forms.mjs:5354:18)
at FormControlName.rememberChangeHistoryAndInvokeOnChangesHook (core.mjs:1526:14)
at callHook (core.mjs:2508:18)
at callHooks (core.mjs:2467:17)
at executeInitAndCheckHooks (core.mjs:2418:9)
at refreshView (core.mjs:11992:21)
This is the HTML from the component...
https://appp.me/TtYn6g
and the TypeScript...
https://appp.me/j3XkRs
Pastes text or code for online public viewing via a share link with syntax highlighting and an optional expiration period. Supports over 170 programming languages.
Pastes text or code for online public viewing via a share link with syntax highlighting and an optional expiration period. Supports over 170 programming languages.