i have a array of values given below
var itelmlist=[{“page”:”url1”,”time”:”20”},
{"page":"url2”,”time”:”25”},
{"page":"url3”,”time”:”10”},
{"page":"url4”,,”time”:”12”},
{"page":"url5”,”time”:”5”},
{"page":"url6”,”time”:”9”},
{"page":"url7”,”time”:”5”},
{"page":"url8”,”time”:”10”},
{"page":"url9”,”time”:”10”} ];
above array is a json array in that two key values "page" and "time",page is an external url and time is the time i need to display that page. i need to display each page for that particular time duration. i tried in angular for each but not working.
How can i do that ?Thanks in advance
I don't understand your time measures but you can use interval function:
$interval(function() {
//your function.. check if the time is correct
}, 100);
Every 100 miliseconds this function will be invoked.