get values from model item

This commit is contained in:
jorgebl 2021-02-26 11:36:22 +01:00
parent 0c4c2b0df4
commit f63baafe7d
2 changed files with 23 additions and 3 deletions

View File

@ -48,9 +48,24 @@
</span>
</vn-label-value>
<vn-label-value
ng-repeat="tag in $ctrl.item.tags | limitTo:4"
label="{{tag.tag.name}}"
value="{{tag.value}}">
label="{{$ctrl.item.tag5}}"
ng-class="{emptyTag: !$ctrl.item.value5}"
value="{{$ctrl.item.value5}}">
</vn-label-value>
<vn-label-value
label="{{$ctrl.item.tag6}}"
ng-class="{emptyTag: !$ctrl.item.value6}"
value="{{$ctrl.item.value6}}">
</vn-label-value>
<vn-label-value
label="{{$ctrl.item.tag7}}"
ng-class="{emptyTag: !$ctrl.item.value7}"
value="{{$ctrl.item.value7}}">
</vn-label-value>
<vn-label-value
label="{{$ctrl.item.tag8}}"
ng-class="{emptyTag: !$ctrl.item.value8}"
value="{{$ctrl.item.value8}}">
</vn-label-value>
</div>
<div class="icons">

View File

@ -7,3 +7,8 @@ vn-item-descriptor {
display: block;
}
}
.emptyTag {
display: none;
}