mirror of
https://github.com/arnaucube/openEventsPlatformApp.git
synced 2026-02-07 19:56:40 +01:00
alert system implemented
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user