salix/front/core/components/card/card.js

18 lines
465 B
JavaScript

import ngModule from '../../module';
require('./style.scss');
export default function directive() {
return {
restrict: 'E',
transclude: true,
link: function($scope, $element, $attrs, $ctrl, $transclude) {
$element[0].classList.add('vn-shadow', 'bg-panel');
$transclude($scope, function(clone) {
$element.append(clone);
});
}
};
}
ngModule.directive('vnCard', directive);