AngularJS ng-repeat -2

In this example, using ng-repeat with array of string/number

by Varun Sukheja

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script>
<div ng-controller='MyController' ng-app="myApp">
    <h4>Names</h4>
    <ul>
        <li ng-repeat="name in names">
            {{name}}
        </li>
    </ul>

    <h4>Numbers</h4>
    <ul>
        <li ng-repeat="x in numbers">
            {{x}}
        </li>
    </ul>
</div>

JavaScript

var app = angular.module('myApp', []);
app.controller('MyController', ['$scope', '$interval', function($scope, $interval) {
    $scope.title = 'Hello world';
    $scope.names = [
        'varun',
        'nama',
        'priya',
        'akram',
        'vibhav',
        'ananya',
        'mansi'
    ];
    $scope.numbers = [3, 7, 5, 56, 09, 24, 15, 1, 67, 97];

}]);