I have this form multiple times on the same page in angular2 to send the message, but I am not sure how can I send the value to the action since it will conflict, is there any angular2 way for such scenarios or have to go with jquery select value function?
<div class="row">
<div class="input-field col s12">
<textarea class="validate"
(ngModel)="msgmodel.message" name="message"></textarea>
<input type="text" class="hidden"
(ngModel)="msgmodel.parentid" name="pid"
[value]="poo.message.Messageid">
</div>
<button type="submit" (click)="sendmessage(msgmodel)" >Submit</button>
</div>