Source:routes.js

/**
 * @ngdoc config
 * @name mainRouteConfig
 * @memberof ClientApp
 * @param $stateProvider {service}
 * @param $urlRouterProvider {service}
 */
app.config('mainRouteConfig',function($stateProvider, $urlRouterProvider) {
  $urlRouterProvider.otherwise("/public");
  $stateProvider.state('login', {
      url: '/login',
      views: {
        '': {
          controller: 'accountCtrl',
          templateUrl: 'app/partials/account/login.html'
        },
        'footer@login': {
          templateUrl: 'app/partials/account/footer.html'
        }
      }
    })
      /**
       * @ngdoc state
       * @name public
       * @memberof ClientApp
       * @description Publicly Accessible Route
       */
    .state('public', {
      url: '/public',
      views: {
        '': {
          controller: 'publicCtrl',
          templateUrl: 'app/partials/public/index.html',
        },
        'header@public': {
          templateUrl: 'app/partials/public/header.html',
        },
        'banner@public': {
          templateUrl: 'app/partials/public/banner.html',
        },
        'start@public': {
          templateUrl: 'app/partials/public/start.html',
        },
        'footer@public': {
          templateUrl: 'app/partials/public/footer.html',
        }
      }
    })
    /**
     * @ngdoc state
     * @name account
     * @memberof ClientApp
     * @description Authorized Route
     */
    .state('account', {
      views: {
        '': {
          templateUrl: 'app/partials/account/index.html'
        },
        'header@account': {
          templateUrl: 'app/partials/account/header.html'
        },
        'footer@account': {
          templateUrl: 'app/partials/account/footer.html'
        }
      }
    })
    /**
     * @ngdoc state
     * @name register
     * @description Register as a New User
     */
      .state('register', {
      url: '/register',
      views: {
        '': {
          templateUrl: 'app/partials/account/register.html'
        },
        'footer@register': {
          templateUrl: 'app/partials/account/footer.html'
        }
      }
    })
      /**
       * @ngdoc state
       * @name transaction
       * @description Fill in transaction form
       */
      .state('account.transaction', {
      url: '/transaction',
      views: {
        '': {
          controller: 'transactionCtrl',
          templateUrl: 'app/partials/transactions/index.html'
        },
        'type@account.transaction': {
          templateUrl: 'app/partials/transactions/type.html'
        },
        'details@account.transaction': {
          templateUrl: 'app/partials/transactions/details.html'
        },
        'payment@account.transaction': {
          templateUrl: 'app/partials/transactions/payment.html'
        }
      }
    });
});