This commit is contained in:
Juan Ferrer Toribio 2017-05-22 12:06:33 +02:00
commit 0b490f4105
4 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,16 @@
import {module} from '../module';
directive.$inject = ['$compile'];
function directive($compile) {
return {
restrict: 'A',
priority: 9999,
link: function(scope, element, attrs) {
element.removeAttr('vn-repeat');
element.attr('ng-repeat', attrs.vnRepeat);
$compile(element)(scope);
}
};
}
module.directive('vnRepeat', directive);

View File

@ -0,0 +1,6 @@
header {
display: flex;
flex-direction: row;
flex: 1;
color: #ffffff;
}

View File

@ -1,2 +1,2 @@
<header class="bg-dark-bar" style="height: 4.2em; color: white;" ng-transclude> <header class="bg-dark-bar" ng-transclude>
</header> </header>

View File

@ -1,4 +1,5 @@
import ngModule from '../../module'; import ngModule from '../../module';
import './style.css';
ngModule.component('vnTopbar', { ngModule.component('vnTopbar', {
template: require('./topbar.html'), template: require('./topbar.html'),