I derped my toderp

This commit is contained in:
Max Lynch
2013-10-03 18:08:49 -05:00
parent 0ecb2b58a8
commit 52bf562b05
3 changed files with 2 additions and 83 deletions

View File

@ -2,23 +2,15 @@ angular.module('ionic.todo.controllers', ['ionic.todo', 'firebase'])
// The main controller for the application
.controller('TodoCtrl', function($scope, $rootScope, AuthService) {
$scope.display = {
screen: 'splash'
};
$rootScope.$on('angularFireAuth:login', function(evt, user) {
$scope.display.screen = 'tasks';
});
$rootScope.$on('angularFireAuth:logout', function(evt, user) {
console.log('Logged out!', evt, user);
$scope.display.screen = 'login';
});
$rootScope.$on('angularFireAuth:error', function(evt, err) {
console.log('Login Error!', evt, err);
});
$scope.setScreen = function(screen) {
$scope.display.screen = screen;
};
})
// The login form controller
@ -39,10 +31,6 @@ angular.module('ionic.todo.controllers', ['ionic.todo', 'firebase'])
$scope.loginError = true;
});
};
$scope.showSignup = function() {
$scope.setScreen('signup');
};
})
// The signup form controller