JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp" ng-controller="myCtrl"> 
    <a ng-repeat="x in [1,2,3,4]" >{{myButton[x]}}</a>
</div>

JavaScript

var app = angular.module("myApp", []);
app.controller("myCtrl", function ($scope) { 

    var first = 1, forth = 4;
    $scope.myButton = [];
    $scope.myButton[first] = ' 1st ';
    $scope.myButton[forth] = ' 4th ';
    $scope.myButton[5] = ' 5th ';
});