CORD-731 Added debug decorator
Change-Id: Idd9595f30f9d09f4072dbcd2b05535dafba3202b
diff --git a/src/app/core/login/login.ts b/src/app/core/login/login.ts
index a08c17d..673d9a8 100644
--- a/src/app/core/login/login.ts
+++ b/src/app/core/login/login.ts
@@ -4,11 +4,12 @@
import {IXosStyleConfig} from '../../../index';
class LoginCtrl {
- static $inject = ['AuthService', '$state', 'ModelSetup', 'StyleConfig'];
+ static $inject = ['$log', 'AuthService', '$state', 'ModelSetup', 'StyleConfig'];
public loginStyle: any;
public img: string;
/** @ngInject */
constructor(
+ private $log: ng.ILogService,
private authService: AuthService,
private $state: angular.ui.IStateService,
private ModelSetup: IXosModelSetupService,
@@ -39,7 +40,7 @@
this.$state.go('xos.dashboard');
})
.catch(e => {
- console.error(e);
+ this.$log.error(e);
});
}