JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp" ng-controller="myCtrl">
  <div class="col-md-4 col-sm-6 col-xs-12 featured" ng-repeat="item in beds">
    <div class="stars" ng-repeat="t in getArray(item)">
      <i class="fa fa-star">{{t}}</i>
    </div>
  </div>
</div>

JavaScript

var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
  $scope.beds = ["1", "2"];
  $scope.getArray = function(num) {
    if (num == "1")
      return ["a","b"];
    else
    return ["c","d"];
  }
});