Merge
This commit is contained in:
commit
0b490f4105
|
@ -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);
|
|
@ -0,0 +1,6 @@
|
|||
header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 1;
|
||||
color: #ffffff;
|
||||
}
|
|
@ -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>
|
|
@ -1,4 +1,5 @@
|
|||
import ngModule from '../../module';
|
||||
import './style.css';
|
||||
|
||||
ngModule.component('vnTopbar', {
|
||||
template: require('./topbar.html'),
|
||||
|
|
Loading…
Reference in New Issue