{"size": 2168, "ext": "js", "max_stars_repo_path": "app/main/main.js", "max_stars_repo_name": "fryder/photoz-tabs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/main/main.js", "max_issues_repo_name": "fryder/photoz-tabs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/main/main.js", "max_forks_repo_name": "fryder/photoz-tabs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8095238095, "max_line_length": 77, "alphanum_fraction": 0.4926199262}
'use strict';
angular.module('main', [
  'ionic',
  'ngCordova',
  'ui.router',
  // TODO: load other modules selected during generation
])
.config(function ($stateProvider, $urlRouterProvider, $ionicConfigProvider) {

  $ionicConfigProvider.tabs.position('bottom');
  // ROUTING with ui.router
  $urlRouterProvider.otherwise('/main/images');
  $stateProvider
    // this state is placed in the <ion-nav-view> in the index.html
    .state('main', {
      url: '/main',
      abstract: true,
      templateUrl: 'main/templates/tabs.html'
    })
      .state('main.list', {
        url: '/list',
        views: {
          'tab-list': {
            templateUrl: 'main/templates/list.html',
            // controller: 'SomeCtrl as ctrl'
          }
        }
      })
      .state('main.listDetail', {
        url: '/list/detail',
        views: {
          'tab-list': {
            templateUrl: 'main/templates/list-detail.html',
            // controller: 'SomeCtrl as ctrl'
          }
        }
      })
      .state('main.account', {
        url: '/account',
        views: {
          'tab-account': {
            templateUrl: 'main/templates/account.html',
            // controller: 'SomeCtrl as ctrl'
          }
        }
      })
      .state('main.login', {
        url: '/login',
        views: {
          'tab-account': {
            templateUrl: 'main/templates/login.html',
            controller: 'LoginCtrl as ctrl'
          }
        }
      })
      .state('main.debug', {
        url: '/debug',
        views: {
          'tab-debug': {
            templateUrl: 'main/templates/debug.html',
            controller: 'DebugCtrl as ctrl'
          }
        }
      })
      .state('main.images', {
        url: '/images',
        views: {
          'tab-images': {
            templateUrl: 'main/templates/images.html',
          //  controller: 'MultiImageCtrl as ctrl'
          }
        }
      })
     .state('main.library', {
       url: '/images/library',
       views: {
         'tab-images': {
           templateUrl: 'main/templates/multi-image-view.html',
           controller: 'MultiImageCtrl as ctrl'
         }
       }
     });
});
