JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-controller="testCtrl">
<div ng-repeat='x in collection1'>
    <div ng-repeat='y in collection2'>
        {{x[y]}}
    </div>
</div>
</div>

JavaScript

angular.module('testApp', [])
.controller('testCtrl', function($scope) {
    $scope.collection1 = [
        'foo.',
        'bar!',
    ];
    
    $scope.collection2 = [
        0,
        1,
        2,
        3,
    ]
});