I have HTML form:
<form>
<div>Add</div>
<div>
<input type="text" ng-model="name">
</div>
<div>
<input type="text" ng-model="phone">
</div>
</form>
How I can clone this form that I will get two fields ng-model="name" and ng-model="text".
So, I want send to server two values of ng-model="name"
I tried:
Angular JS:
$scope.forms = 2;
HTML:
<div class="itm" ng-repeat="item in forms">
<input type="text" ng-model="name">
</div>
It gives me nothing