Here is the Link for the jsFiddle : AngularJS : Display Data
I have HTML File is like following:
<div ng-controller="myCtrl">
<div ng-repeat="test in tests">
<p>{{test.testName}}</p>
</div>
</div>
Controller under .js file is like following:
var app = angular.module('myApp', []);
function myCtrl($scope) {
$scope.tests = [{
"testName" : "Test-1 : Windows Test"
},
{
"testName" : "Test-2 : Linux Test"
},
{
"testName" : "Test-3 : Unix Test"
},
];
}
My Question is:
Currently the result is coming in the following format:
Test-1 : Windows Test
Test-2 : Linux Test
Test-3 : Unix Test
I want to display the Test-1 : Windows Test
at beginning and after 30 seconds Test-2 : Linux Test
and after 30 seconds Test-3 : Unix Test
and so on..!!
Once all the data are completed again the Test-1 : Windows Test
will come again..!!
How should I implement this with the AngularJS ?