Simplified controllers with identityService

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-24 11:37:03 -03:00
commit ebe415a3d6
4 changed files with 46 additions and 26 deletions

View file

@ -1,9 +1,10 @@
'use strict';
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager) {
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, notification, controllerUtils, pluginManager, identityService) {
controllerUtils.redirIfLogged();
$scope.retreiving = true;
$scope.retreiving = false;
identityService.checkIdentity($scope);
$scope.openProfile = function(form) {
if (form && form.$invalid) {