Есть такой пример на AngularJS, который вполне рабочий. const app = angular.module('app', []); app.controller('testController', function($scope) { $scope.testScope = ['text-0', 'text-4', 'text-1']; }) <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.min.js"><