diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-10 17:21:23 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-10 17:21:23 -0400 |
| commit | c773727f312c647750014e906cc9c0b010ab8454 (patch) | |
| tree | 76dadfd5f75b55c5200138ee472f309790f2005b /www/js/LoginCtrl.js | |
| parent | f2e3d1c121903f36fe996538b14429da733c06e7 (diff) | |
JSHinted everything, added dependency arrays in all controllers for future minification
Diffstat (limited to 'www/js/LoginCtrl.js')
| -rw-r--r-- | www/js/LoginCtrl.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index ef28f2fa..7a4c7695 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -1,7 +1,11 @@ -angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', function ($scope, $rootScope, $ionicModal, ZMDataModel, $ionicSideMenuDelegate, $ionicPopup, $http, $q, $ionicLoading) { +/* jshint -W041 */ +/* jslint browser: true*/ +/* global cordova,StatusBar,angular,console */ + +angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$rootScope', '$ionicModal', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicPopup', '$http', '$q', '$ionicLoading', function ($scope, $rootScope, $ionicModal, ZMDataModel, $ionicSideMenuDelegate, $ionicPopup, $http, $q, $ionicLoading) { $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); - } + }; $scope.loginData = ZMDataModel.getLogin(); @@ -100,11 +104,11 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', function ($sco { $ionicPopup.alert({ title: 'Error Details', - template: JSON.stringify(error)}) + template: JSON.stringify(error)}); } } ] - }) + }); } @@ -113,4 +117,4 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', function ($sco }; -}) +}]); |
