Working modal stuff

This commit is contained in:
Max Lynch
2013-10-04 17:47:54 -05:00
parent e8d76af832
commit c338f75882
12 changed files with 214 additions and 95 deletions

View File

@ -1,4 +1,4 @@
angular.module('ionic.todo.controllers', ['ionic.todo', 'firebase'])
angular.module('ionic.todo.controllers', ['ionic.todo', 'ionic.service.modal', 'firebase'])
// The main controller for the application
.controller('TodoCtrl', function($scope, $rootScope, AuthService) {
@ -45,12 +45,19 @@ angular.module('ionic.todo.controllers', ['ionic.todo', 'firebase'])
})
// The signup form controller
.controller('SignupCtrl', function($scope, AuthService) {
.controller('SignupCtrl', function($scope, AuthService, Modal) {
$scope.signupForm = {};
Modal.fromTemplateUrl('login.html', function(modal) {
$scope.loginModal = modal;
});
$scope.trySignup = function(data) {
AuthService.signup(data.email, data.password);
};
$scope.showLogin = function() {
};
})
.controller('ProjectsCtrl', function($scope, angularFire, FIREBASE_URL) {