19 lines
558 B
JavaScript
19 lines
558 B
JavaScript
import ngModule from '../../module';
|
|
require('./style.scss');
|
|
|
|
export default function directive() {
|
|
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);
|