alert system implemented

This commit is contained in:
arnaucode
2017-02-21 09:43:45 +01:00
parent e6eeaa9f0c
commit 840d8b8663
9 changed files with 146 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ angular.module('app.events', ['pascalprecht.translate'])
$scope.events=[];
$scope.alerts=[];
$scope.page=0;
$scope.doRefresh = function() {
/* events refresh: */
@@ -23,6 +24,11 @@ angular.module('app.events', ['pascalprecht.translate'])
$ionicLoading.show({ template: 'Error connecting server', noBackdrop: true, duration: 2000 });
});
$http.get(urlapi + 'alerts')
.then(function(data){
$scope.alerts=data.data;
}, function(data){
});
};
$scope.doRefresh();