When working with different objects and creating forms simultaneously, I've come across a challenge. My initial idea for handling the submission was to use the following code:
<form (ngSubmit)="submitForm{{u}}()">
However, incorporating the index (u) into the string without causing an error has proven to be difficult.
Parser Error: Got interpolation ({{}}) where expression was expected
Although I am aware that
(ngSubmit)={{u}}
would provide the desired result, I also require the function name to be included.
Any insights on how to achieve this would be greatly appreciated.