JSFiddle - React, Tailwind, and code Playground

by gabs00

HTML

<div ng-app="myApp">
  <ul ng-controller="MyCtrl">
    <li ng-repeat="item in items">
      {{item[0].field}} <!-- just a sanity check -->
      <ul>
        <li ng-repeat="val in item" ng-if="item[$index].field !== 'apple'">{{val.value}}</li>
      </ul>
    </li>
  </ul>
</div>

JavaScript

angular.module('myApp', [])
	.controller('MyCtrl', function($scope){
  	$scope.items = [
    	[
      {
      	field: 'apple',
        value: 'pie'
      },
      {
      	field: 'chocolate',
        value: 'cake'
      }
      ]
    ];
  });