Tarea #315 Card refactor needed CR JUAN

This commit is contained in:
gerard 2018-05-30 08:44:01 +02:00
parent 8878593bbe
commit c6a8b4cea9
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
<div ng-transclude></div>
<div></div>

View File

@ -7,8 +7,12 @@ export default function directive(vnTemplate) {
restrict: 'E',
transclude: true,
template: require('./card.html'),
link: function(_, $element) {
link: function($scope, $element, $attrs, $ctrl, $transclude) {
$element.addClass('demo-card-wide mdl-shadow--2dp bg-panel');
$transclude($scope, function(clone) {
angular.element($element[0].querySelector('div')).append(clone);
});
}
};
}