summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
blob: 2e428c18de9a4d6d2749d4aaa80e7e9be6648d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);



    };
})