fixes #5507 this.vnConfig no tiene datos cargados al inicio de la aplicación #1565
|
@ -1,8 +1,8 @@
|
||||||
import ngModule from './module';
|
import ngModule from './module';
|
||||||
import getMainRoute from 'core/lib/get-main-route';
|
import getMainRoute from 'core/lib/get-main-route';
|
||||||
|
|
||||||
config.$inject = ['$stateProvider', '$urlRouterProvider'];
|
config.$inject = ['$stateProvider', '$urlRouterProvider', 'vnConfig'];
|
||||||
function config($stateProvider, $urlRouterProvider) {
|
function config($stateProvider, $urlRouterProvider, vnConfig) {
|
||||||
$urlRouterProvider
|
$urlRouterProvider
|
||||||
.otherwise('/');
|
.otherwise('/');
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ function config($stateProvider, $urlRouterProvider) {
|
||||||
.state('layout', {
|
.state('layout', {
|
||||||
abstract: true,
|
abstract: true,
|
||||||
template: '<vn-layout></vn-layout>',
|
template: '<vn-layout></vn-layout>',
|
||||||
|
resolve: () => vnConfig.initialize()
|
||||||
})
|
})
|
||||||
.state('outLayout', {
|
.state('outLayout', {
|
||||||
abstract: true,
|
abstract: true,
|
||||||
|
|
Loading…
Reference in New Issue