summaryrefslogtreecommitdiff
path: root/www/js/FirstUseCtrl.js
blob: 2e0d5c851882645011f8b042cf30a70b2d8e40db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* jshint -W041 */
/* jslint browser: true*/
/* global cordova,StatusBar,angular,console */

angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope','$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory','$state', function ($scope,$ionicSideMenuDelegate,zm, $stateParams, $ionicHistory, $state) {
$scope.openMenu = function () {
    $ionicSideMenuDelegate.toggleLeft();
  };



    //-------------------------------------------------------------------------
    // Controller Main
    //------------------------------------------------------------------------
    $scope.$on('$ionicView.enter', function () {
        //console.log("**VIEW ** FirstUse Ctrl Entered");
        $ionicSideMenuDelegate.canDragContent(true);
    

    });
    
    $scope.goToLogin = function()
    {
        $ionicHistory.nextViewOptions({
                    disableAnimate: false,
                    disableBack: true
                });
        $state.go("login" ,{"wizard": false});
    };
    
    $scope.goToWizard = function()
    {
        $ionicHistory.nextViewOptions({
                    disableAnimate: false,
                    disableBack: true
                });
        $state.go("wizard" );
    };
    
    

}]);