Answer the question
In order to leave comments, you need to log in
How to fix undefined error when accessing a variable in HTML?
I have an object and when accessing a value in html, I get an error:
TS:
HTML:
Line 30, if instead of ['persons_'+i+1] I just write ['persons_1'], then it does not give an error, but when dynamically accessed, an error appears
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question