diff options
| author | ARC <arjunrc@gmail.com> | 2015-04-25 09:13:54 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-04-25 09:13:54 -0400 |
| commit | 86e4e291bfda3365c0bb82bacb2b9990a86ce759 (patch) | |
| tree | c9729d4bd5366656e39761319546593c02f0f709 /www/js/LoginCtrl.js | |
First Commit
Diffstat (limited to 'www/js/LoginCtrl.js')
| -rw-r--r-- | www/js/LoginCtrl.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js new file mode 100644 index 00000000..2e428c18 --- /dev/null +++ b/www/js/LoginCtrl.js @@ -0,0 +1,17 @@ +angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', function ($scope, $rootScope, $ionicModal, ZMDataModel,$ionicSideMenuDelegate) { +$scope.openMenu = function () { + $ionicSideMenuDelegate.toggleLeft(); + } + + $scope.loginData = ZMDataModel.getLogin(); + + + // Perform the login action when the user submits the login form + $scope.login = function () { + console.log('Saving login'); + ZMDataModel.setLogin($scope.loginData); + + + + }; +})
\ No newline at end of file |
