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