diff --git a/example/toderp2/index.html b/example/toderp2/index.html index 0d63bc76a0..5bcdf4d1f9 100644 --- a/example/toderp2/index.html +++ b/example/toderp2/index.html @@ -147,12 +147,15 @@ diff --git a/example/toderp2/js/controllers.js b/example/toderp2/js/controllers.js index 17abfbeca8..6069d85a32 100644 --- a/example/toderp2/js/controllers.js +++ b/example/toderp2/js/controllers.js @@ -188,8 +188,11 @@ angular.module('ionic.todo.controllers', ['ionic.todo']) }); }) -.controller('SettingsCtrl', function($scope) { +.controller('SettingsCtrl', function($scope, AuthService) { $scope.close = function() { $scope.modal.hide(); } + $scope.logout = function() { + AuthService.logout(); + }; }) diff --git a/example/toderp2/js/services.js b/example/toderp2/js/services.js index 5bd27fb9ac..fa2129d791 100644 --- a/example/toderp2/js/services.js +++ b/example/toderp2/js/services.js @@ -14,7 +14,6 @@ angular.module('ionic.todo.services', ['ionic.todo', 'firebase']) }); return { - // Try to log in with the given email and pass login: function(email, password) { if(!email || !password) { @@ -28,6 +27,10 @@ angular.module('ionic.todo.services', ['ionic.todo', 'firebase']) }); }, + logout: function() { + angularFireAuth.logout(); + }, + // Try to sign up with the given email and pass signup: function(email, password) { if(!email || !password) { diff --git a/test/input-text.html b/test/input-text.html index 5f9423095c..4cd1e2cae7 100644 --- a/test/input-text.html +++ b/test/input-text.html @@ -20,241 +20,243 @@