move invalid list row properties to row component

This commit is contained in:
John Mitchell
2018-04-09 11:20:26 -04:00
parent d1b504e34d
commit 37546d6495
4 changed files with 11 additions and 129 deletions

View File

@@ -7,7 +7,9 @@ function atRow () {
transclude: true,
templateUrl,
scope: {
templateId: '@'
templateId: '@',
invalid: '=',
invalidTooltip: '='
}
};
}

View File

@@ -1,2 +1,6 @@
<div class="at-Row" id="row-{{ templateId }}" ng-transclude>
<div class="at-Row" id="row-{{ templateId }}">
<div class="at-Row--invalid" ng-show="invalid">
<at-popover state="invalidTooltip"></at-popover>
</div>
<ng-transclude></ng-transclude>
</div>