Rename factory to service.
This commit is contained in:
parent
9a7d3938aa
commit
0268280a73
@ -37,7 +37,7 @@ module.exports = angular.module('accountant.login', [
|
|||||||
ngUiBootstrap
|
ngUiBootstrap
|
||||||
])
|
])
|
||||||
|
|
||||||
.factory('LoginService', function($uibModal, $storage, $document, $log, authService) {
|
.service('LoginService', function($uibModal, $storage, $document, $log, authService) {
|
||||||
var login = function () {
|
var login = function () {
|
||||||
$storage.session.clear();
|
$storage.session.clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user