17 lines
448 B
JavaScript
17 lines
448 B
JavaScript
var app = angular.module('infoApp', []);
|
|
|
|
app.controller('infoscreen_main', function($scope, $http,$timeout){
|
|
var index = -1;
|
|
var templates = [
|
|
"/static/html/test1.html",
|
|
"/static/html/test2.html",
|
|
"/static/html/test3.html",
|
|
];
|
|
$scope.next = function(){
|
|
index = (index + 1) % templates.length;
|
|
$scope.active = templates[index];
|
|
$timeout($scope.next,5000);
|
|
}
|
|
$scope.next()
|
|
});
|