Sha256: e2317673ddeec5e7f0938d1707b52f2112540ff9d665ae536c8fdd5f03cb4397
Contents?: true
Size: 477 Bytes
Versions: 6
Compression:
Stored size: 477 Bytes
Contents
I"Ñ(function() { this.app.controller('RepeaterFieldCtrl', [ '$scope', function($scope) { $scope.rows = ['']; $scope.initRows = function(rows) { if ((rows != null) && rows.length) { return $scope.rows = rows; } }; $scope.addRow = function() { return $scope.rows.push(''); }; return $scope.removeRow = function(i) { return $scope.rows.splice(i, 1); }; } ]); }).call(this); :ET
Version data entries
6 entries across 4 versions & 2 rubygems