title: Angular - Dynamic ng-model name with id in ng-repeat
body: <p>This is my controller:</p>
  
  <pre><code>$scope.inputs = [];
  $scope.addInput = function () {
      $scope.inputs.push({
          id: $scope.inputs.length + 1,
      });
  
  };
  $scope.removeInput = function (index) {
      $scope.inputs.splice(index, 1);
  };
  </code></pre>
  
  <p>I try this way but didn't work: </p>
  
  <pre><code>&lt;div ng-repeat="input in inputs"&gt;
        &lt;textarea   id="activity"
                    name="project_budget_administration[&lt;% input.id %&gt;][activity]"
                    placeholder="Activity"
                    ng-model="project_budget_administration.activity_&lt;% input.id %&gt;"
                    ng-maxlength="100"
                    required&gt;&lt;/textarea&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>For name attribute of textarea works perfect but for ng-model - not.
  Also i tried with this syntax ng-model="project_budget_administration.activity[input.id]" and instead of input.id i tried $index, also not working.</p>