LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

  
    
    
    
    Add Rows

    
    
  

  
    
    Add Row {{counter}}
    
Some Header
{{rowContent}}
JS
angular.module('MyApp', [])
.controller('MainController', [ '$scope', function($scope) {

  $scope.rows = ['Row 1', 'Row 2'];
  
  $scope.counter = 3;
  
  $scope.addRow = function() {
    
    $scope.rows.push('Row ' + $scope.counter);
    $scope.counter++;
  }
}]);

Description

Click a button to add a row to a table. For http://stackoverflow.com/questions/21295117/is-possible-in-angular-js-on-click-button-add-row-in-table
Term
Mon, 11/27/2017 - 21:30

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv