sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/components/alert.js

14 lines
253 B
JavaScript
Raw Normal View History

2016-08-17 22:35:25 +02:00
'use strict';
angular.module('alert', [])
.factory('alert', ['$rootScope',function($rootScope) {
return {
set: function (res){
if(res.data){
$rootScope.error = res.data.error;
}else{
$rootScope.error = res;
}
}
};
}]);