JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="anApp" ng-controller="aController">
<input data-ng-model="data[value2.Id]" placeholder="{{value2.Label}}" type="text" />
<button ng-click="send_form()">Submit</button>
</div>
JavaScript
var myApp = angular.module('anApp', []);
myApp.controller('aController', ['$scope', function ($scope) {
$scope.value2 = {
Id: 0,
Label: "Testing"
};
$scope.data = [];
$scope.send_form = function () {
alert($scope.data);
}
}]);