Hello,
maybe in your case it helps to post html and both code in ts, to see where it fails.
Best regards, anna-liebt