Sha256: f26bab274fa80534d4aea53464c78acda65920b44e00fda20f09aee53b876408

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

I"$(function() {
  this.app.controller('RepeaterFieldCtrl', [
    '$scope', function($scope) {
      $scope.rows = [$scope.obj];
      $scope.initRows = function(rows) {
        console.log($scope.obj);
        console.log($scope.rows);
        if ((rows != null) && rows.length) {
          return $scope.rows = rows;
        }
      };
      $scope.addRow = function() {
        return $scope.rows.push($scope.obj);
      };
      return $scope.removeRow = function(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/M7HOfdaRiHfvg_C8pXVPPQG3qIWvf3gZxFACBV0gYZg.cache