JSFiddle - React, Tailwind, and code Playground

HTML

<body ng-app="myModule">
<div ng-controller="myController">
  <div ng-repeat="hero in heroes">
    <div ng-class="{ 'weight-\'hero.stats.indexOf('\'type\':\'weight\'').value\'' : hero.stats.indexOf('\'type\':\'weight\'') >= 0 }">
            hello
     </div>
  </div>
</div>
</body>

JavaScript

var myModule = angular.module('myModule', []);

myModule.controller('myController', ['$scope',  function($scope) {
    
    $scope.heroes = [{
      "firstname" : "clark",
      "lastname" : "kent",
    	"stats" : [
        {
      	"type" : "height",
        "value" : "6'2"
        },
        {
      	"type" : "weight",
        "value" : 220
        },
        {
        "type" : "hair",
        "value" : "brown"
        }
      ]},
      {
      "firstname" : "bruce",
      "lastname" : "wayne",
    	"stats" : [
        {
      	"type" : "height",
        "value" : "6'1"
        },
        {
        "type" : "hair",
        "value" : "black"
        }
      ]},
      {
      "firstname" : "peter",
      "lastname" : "parker",
    	"stats" : [
        {
      	"type" : "height",
        "value" : "5'11"
        },
        {
      	"type" : "weight",
        "value" : 180
        },
        {
        "type" : "hair",
        "value" : "auburn"
        }
      ]}];
      
}]);