I am looping through the JSON to display values Company name and divisions under it , but the issue is that how can i stop to display division names for whose company name is empty
This is my code
<div ng-app="myapp" ng-controller="FirstCtrl">
<div class="box-footer no-padding">
<ul class="nav nav-stacked">
<li ng-repeat="item in tickets" ng-if="item.name!='' && item.name">
<a class="clearfix">
{{item.name}}
<span ng-repeat="form in item.forms" class="pull-right badge ml5" >{{form.name}}</span>
</a>
</li>
</ul>
</div>
</div>
As you can i tried using ng-if="item.name!='' && item.name"
I don't want to display the divisions if the company name is empty or undefined .
This is my fiddle