From 86e4e291bfda3365c0bb82bacb2b9990a86ce759 Mon Sep 17 00:00:00 2001 From: ARC Date: Sat, 25 Apr 2015 09:13:54 -0400 Subject: First Commit --- www/js/LoginCtrl.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 www/js/LoginCtrl.js (limited to 'www/js/LoginCtrl.js') 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 -- cgit v1.2.3