This commit is contained in:
parent
37a5e6e6c6
commit
a7363ce2a4
|
@ -5,7 +5,6 @@ import './auth';
|
|||
import './token';
|
||||
import './modules';
|
||||
import './interceptor';
|
||||
import './config';
|
||||
import './week-days';
|
||||
import './report';
|
||||
import './email';
|
||||
|
|
|
@ -20,8 +20,6 @@ class Controller {
|
|||
name: config.languages[code] ? config.languages[code] : code
|
||||
});
|
||||
}
|
||||
|
||||
vnConfig.initialize();
|
||||
}
|
||||
|
||||
set lang(value) {
|
||||
|
|
|
@ -3,3 +3,4 @@ import './routes';
|
|||
import './components';
|
||||
import './styles';
|
||||
import 'vn-loopback/server/boot/date';
|
||||
import './services';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import ngModule from './module';
|
||||
import getMainRoute from 'core/lib/get-main-route';
|
||||
|
||||
config.$inject = ['$stateProvider', '$urlRouterProvider', 'vnConfig'];
|
||||
function config($stateProvider, $urlRouterProvider, vnConfig) {
|
||||
config.$inject = ['$stateProvider', '$urlRouterProvider'];
|
||||
function config($stateProvider, $urlRouterProvider) {
|
||||
$urlRouterProvider
|
||||
.otherwise('/');
|
||||
|
||||
|
@ -10,7 +10,9 @@ function config($stateProvider, $urlRouterProvider, vnConfig) {
|
|||
.state('layout', {
|
||||
abstract: true,
|
||||
template: '<vn-layout></vn-layout>',
|
||||
resolve: () => vnConfig.initialize()
|
||||
resolve: {
|
||||
config: ['vnConfig', vnConfig => vnConfig.initialize()]
|
||||
}
|
||||
})
|
||||
.state('outLayout', {
|
||||
abstract: true,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
import './config';
|
Loading…
Reference in New Issue