Sha256: a1f3f7db18abca3d0eeaafff832b4220bd933451947dcef7a0b931d2949afbb1

Contents?: true

Size: 591 Bytes

Versions: 8

Compression:

Stored size: 591 Bytes

Contents

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

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

      PayloadTemplates.resolve('PraxisHeaders', '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_headers.js
praxis-0.11.2 lib/api_browser/app/js/directives/request_headers.js
praxis-0.11.1 lib/api_browser/app/js/directives/request_headers.js
praxis-0.11 lib/api_browser/app/js/directives/request_headers.js
praxis-0.11pre lib/api_browser/app/js/directives/request_headers.js
praxis-0.10.1 lib/api_browser/app/js/directives/request_headers.js
praxis-0.10.0 lib/api_browser/app/js/directives/request_headers.js
praxis-0.9 lib/api_browser/app/js/directives/request_headers.js