Sha256: 239e92dddbc2d10873db9ec20e7ea24db43973b364ae06b2c3c1585d3ee3b5c6
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
app.directive('rsAttributeTableRow', function($compile, TypeTemplates) { return { restrict: 'EA', scope: { name: '=', attribute: '=' }, link: function(scope, element) { // use the attribute type name to find the template var name = (scope.attribute.type ? scope.attribute.type.name : null) || 'default'; TypeTemplates.resolve(name).then(function(template) { element.replaceWith($compile(template)(scope)); }); } }; });
Version data entries
4 entries across 4 versions & 1 rubygems