Hey there! I'm working with a dynamically created form and I need to figure out how to send the form when it's submitted. Any ideas on how to do this would be greatly appreciated!
Check out my code on Plunker: Link
<form name="MCommForm{{item.Id}}" novalidate="">
<input type="text" name="MCommentN{{item.Id}}" ng-model="item.Comment">
<div ng-show="!(MCommForm{{item.Id}}.MCommentN{{item.Id}}.$pristine)" ng-click="grid.appScope.vm.saveComment(MCommForm(item.Id))"></div>
</form>
I've attempted to use MCommForm(item.Id) but it's returning undefined. Any suggestions on how to fix this issue?
Thanks in advance for any help!