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

'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;
}
}
};
}]);