import ngModule from '../../module'; require('./style.scss'); directive.$inject = ['vnTemplate']; export default function directive(vnTemplate) { return { restrict: 'E', transclude: true, template: require('./card.html'), 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); }); } }; } ngModule.directive('vnCard', directive);