Get Button Value when click in Angularjs
<p>My question Related to this Question at <a href="https://stackoverflow.com/questions/29609748/ng-repeat-values-with-3-columns-in-table-angularjs">ng-repeat values with 3 columns in table? - AngularJS</a></p>

<p>Then my Question is How to Get the Value of that button on click. ?</p>

<p>Here is My Problem </p>

<pre><code> &lt;input type='text' ng-model="mydata" /&gt;

  &lt;span ng-bind="$parent.$eval(mydata)"&gt;&lt;/span&gt; 




 $scope.buttons =[ [0,1,2,3,4],
                    [5,6,7,8,9]
                  ];




&lt;tr ng-repeat="row in buttons"&gt;
  &lt;td ng-repeat= "button in row"&gt;&lt;button class="btn btn-primary" ng-click ="$parent.mydata = $parent.mydata.toString() + button"&gt;
    {{button}}&lt;/button&gt;&lt;/td&gt;
  &lt;/tr&gt;
</code></pre>

<p>It Works on a single Array. But in multiple it doesn't </p>