Add sanitize module, use angular route minified
This commit is contained in:
parent
58e5c44db2
commit
cf6874b169
7 changed files with 41 additions and 1013 deletions
|
@ -4,15 +4,20 @@
|
|||
|
||||
|
||||
|
||||
mainApp.controller('statusCtrl', function ($scope,$interval)
|
||||
mainApp.controller('statusCtrl', function ($scope,$interval,$sce)
|
||||
{
|
||||
|
||||
// Update status every 2 seconds
|
||||
$interval(function(){
|
||||
var status=identity.fetchStatus();
|
||||
$scope.connection=status[0];
|
||||
$scope.username=status[1];
|
||||
$scope.lastconnection=status[2];
|
||||
if(status[0] == "1"){
|
||||
$scope.connection=$sce.trustAsHtml("Connection : <span style=\"color:green;\">Online</span>");
|
||||
}
|
||||
else{
|
||||
$scope.connection="Connection : <span style=\"color:red;\">Offline</span>";
|
||||
}
|
||||
}, 2000);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue