JSFiddle - React, Tailwind, and code Playground

HTML

<body ng-app="MyApp" ng-controller="ExampleController as example">
  <div  ng-repeat="item in example.items" class="someClass">
     <!-- load a different template (partial) depending on the value of item.type -->
  </div>
</body>

CSS

.someClass{
  float: left;
  width: 100px;
  height: 100px;
  background-color: black;
  border: 2px solid white;
}

JavaScript

angular.module('MyApp',[]);
angular.module('MyApp').controller('ExampleController', [ExampleController]);
function ExampleController() {
    var ctrl = this;
    
    ctrl.items = [
    		{"type": "type1"},
        {"type": "type2"},
        {"type": "type3"},
        {"type": "type4"}
		];
}