Sha256: c6a9935e7f368e472f8a41be48949a896902c0048f41705850c4d53178715432
Contents?: true
Size: 498 Bytes
Versions: 6
Compression:
Stored size: 498 Bytes
Contents
app.directive('rsAttributeTableRow', function($compile, TypeTemplates) { return { restrict: 'E', scope: { name: '=', attribute: '=' }, link: function(scope, element, attrs) { // 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
6 entries across 6 versions & 1 rubygems