angular.module('TryApi').directive('paramsarray', [ '$filter', function($filter) { var link; link = function(scope, element, attrs, ctrl) { scope.parameter.values = []; scope.addItem = function() { return scope.parameter.values.push(jQuery.extend(true, {}, scope.parameter.parameters)); }; return scope.deleteItem = function(index) { return scope.parameter.values.splice(index, 1); }; }; return { link: link, restrict: 'A', require: 'ngModel', scope: { parameter: '=ngModel' }, template: '' + '