diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-02 21:14:32 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-02 21:14:32 -0400 |
| commit | 0c41ec273926cef1d40b6e8bc4bc6f08fb46212f (patch) | |
| tree | b813a2d8c56c93be23510db9056b37a730af35e8 /www/js | |
| parent | 7a2f98da7f8b484c7aa24df44fb15cc13b828a82 (diff) | |
every app needs a help menu
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/HelpCtrl.js | 7 | ||||
| -rw-r--r-- | www/js/app.js | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/www/js/HelpCtrl.js b/www/js/HelpCtrl.js new file mode 100644 index 00000000..37c98d39 --- /dev/null +++ b/www/js/HelpCtrl.js @@ -0,0 +1,7 @@ +angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', function ($scope, $rootScope, $ionicModal, ZMDataModel,$ionicSideMenuDelegate) { +$scope.openMenu = function () { + $ionicSideMenuDelegate.toggleLeft(); + } +console.log ("***** HELP ****"); + +}) diff --git a/www/js/app.js b/www/js/app.js index 93c1871b..494ebdb9 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -151,6 +151,18 @@ angular.module('zmApp', [ }) + $stateProvider + .state('help', { + data: { + requireLogin: false + }, + url: "/help", + templateUrl: "templates/help.html", + controller: 'zmApp.HelpCtrl', + + + }) + .state('monitors', { data: { requireLogin: true |
