Tarea #315 Card refactor needed CR JUAN
This commit is contained in:
parent
8878593bbe
commit
c6a8b4cea9
|
@ -1 +1 @@
|
|||
<div ng-transclude></div>
|
||||
<div></div>
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue