Sha256: 31cdf3e3318844a23ac5eab3c84f4fbb12d9b2359ead00de6f9c7e6413f37c07

Contents?: true

Size: 764 Bytes

Versions: 21

Compression:

Stored size: 764 Bytes

Contents

import {Config} from 'a1atscript';
import {whenGoto} from 'xing-frontend-utils';

@Config('$stateProvider', '$urlRouterProvider', '$locationProvider')
export default function appConfig( $stateProvider, $urlRouterProvider, $locationProvider ) {
  // enable html5 mode
  $locationProvider.html5Mode(true);

  // html5 mode when frontend urls hit directly they become a backend request
  // backend in-turn redirects to /?goto=url wher url is the intended frontend url
  // this function then redirects frontend (via history API) to appropriate frontend
  // route
  $urlRouterProvider.when(/.*/, ['$location', whenGoto]);

  $urlRouterProvider.otherwise(($injector, $location) => {
    $injector.get('$state').go('root.homepage.show');
    //return '/home';
  });
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-1.0.0.pre.beta default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-1.0.0.pre.alpha default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.3.2 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.3.1 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.3.0 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.9 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.9.beta1 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.8 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.8.beta1 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.7 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.6 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.5 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.4 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.3 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.2 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.1 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.2.0 default_configuration/base_app/frontend/src/app/appConfig.js
xing-framework-0.0.3 default_configuration/base_app/frontend/src/app/appConfig.js