In this example we bind the numbers array with some duplicate values (2 is two times in the array) with the div tag using ng-repeat directive. As there are duplicate values so we have to track this array by $index.
Using the ng-repeat directive we print the index of the array element and value on the index, Use 'track by'
expression to specify unique keys. See the output.