Sha256: 54d178c2d25e2dc554e25411b4cc84f37c212543f6ff5836b48dd89d644bbd63

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

I"$(function() {
  this.app.controller('RepeaterFieldCtrl', [
    '$scope', function($scope) {
      $scope.initRows = function(rows) {
        if ((rows != null) && rows.length) {
          return $scope.rows = rows;
        } else {
          return $scope.rows = [$scope.obj];
        }
      };
      $scope.addRow = function() {
        return $scope.rows.push($scope.obj);
      };
      return $scope.removeRow = function(i) {
        console.log("Removeing " + i);
        return $scope.rows.splice(i, 1);
      };
    }
  ]);

}).call(this);
:ET

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
push_type_admin-0.5.0.alpha.2 test/dummy/tmp/cache/assets/development/sprockets/v3.0/wCv-ylpfHtHdp3hOIyhOO2v1oiu9kOj6hEeNfWeUqoI.cache