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