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