Sha256: f199d8ec30b8f81dabcc00c79c9648fa5407f95514ccfe3d993fa42bdc22d035

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

angular.module('TryApi').directive 'paramsobject', [
  '$filter'
  ($filter) ->

    link = (scope, element, attrs, ctrl) ->

      scope.parameter.values = jQuery.extend(true, {}, scope.parameter.parameters)

    return {
      link: link
      restrict: 'A'
      require: 'ngModel'
      scope:
        parameter: '=ngModel'
      template: '' +
        '<div style="border: 1px solid lightgray; margin: 1px 1px 1px 10px">' +
        '  <div params ng-model="parameter.values"></div>' +
        '</div>'
    }
]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
try_api-0.1.6 app/assets/javascripts/try_api/paramsobject.directive.js.coffee
try_api-0.1.5 app/assets/javascripts/try_api/paramsobject.directive.js.coffee