Sha256: ba657f1488d4f3cadf2a033f5aff073a74160633fabac7efe0163beb9bc45d93

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

app.directive('rsRequestParameters', function($compile, PayloadTemplates) {
  return {
    restrict: 'E',
    scope: {
      parameters: '='
    },
    link: function(scope, element) {
      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

4 entries across 4 versions & 1 rubygems

Version Path
praxis-0.16.1 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.16.0 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.15.0 lib/api_browser/app/js/directives/request_parameters.js
praxis-0.14.0 lib/api_browser/app/js/directives/request_parameters.js