Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>    
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<div ng-app="ReceiptsApp">
    <div ng-controller="ReceiptsController">
      <table class="tableData">
            
          <tr ng-repeat="r in rvm">
                <td>
                    <input type="text" lass="input-large" ng-model="r.val1" name="val1" />
                </td>
                <td>
                    <button type="button" class="btn btn-default" ng-click="addRow1($index)">Add</button>
                </td>
                        </tr>
          
        </table>
       
    </div>
</div>
</div>
</body>
</html>
 
var ReceiptsApp = angular.module('ReceiptsApp', []);
ReceiptsApp.controller('ReceiptsController', function ($scope) {
 $scope.rvm = [{val1:  2.00}];  
   $scope.addRow1 = function (index) {
        alert($scope.rvm[index].val1);
         $scope.rvm.push({val1:  2.00});
      }
       });
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers