Issue
date input is taken by other values as well..below is my html
name='form_{{columns.dataId}}'
ng-init="dateValue = columns.formValue != null ? columns.formValue : ''"
ng-model="columns.formValue"
pick-a-date="dateValue">
</div>
</td>
</tr>
Solution
Here's an option
In controller:
$scope.dateValues={};
// this will get populated with your dates
// your object ends up looking like this
// $scope.dateValues.12 = "2021-01-01"
// $scope.dateValues.19= "2021-02-01"
// $scope.dateValues.56= "2021-03-01"
the HTML:
<div ng-repeat="cell in data.extradata[0].arrayColumns[0].cellData">
<input class="date_picker"
...
ng-model="dateValues[cell.dataId]"
... />
</div>
Answered By - Kinglish
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.