Sha256: 685b1b83efa7c9c805aca6d2bec3915b1f8dd9e748495436bcc39abcc761c2e4

Contents?: true

Size: 612 Bytes

Versions: 8

Compression:

Stored size: 612 Bytes

Contents

app.directive('rsRequestParameters', function($compile, PayloadTemplates) {
  return {
    restrict: 'E',
    scope: {
      parameters: '='
    },
    link: function(scope, element, attrs) {
      // use the attribute type name to find the template
      var name = (scope.parameters.type ? scope.parameters.type.name : null) || 'default';

      if(scope.parameters.type) {
        scope.attributes = scope.parameters.type.attributes;
      }

      PayloadTemplates.resolve('PraxisParameters', 'Struct').then(function(template) {
        element.replaceWith($compile(template)(scope));
      });
    }
  }
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
praxis-0.13.0 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.11.2 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.11.1 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.11 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.11pre lib/api_browser/app/js/directives/request_parameters.js
praxis-0.10.1 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.10.0 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.9 lib/api_browser/app/js/directives/request_parameters.js