fixes #5507 this.vnConfig no tiene datos cargados al inicio de la aplicación #1565

Merged
alexandre merged 9 commits from 5507-loadConfigAtStart into dev 2023-06-07 06:30:10 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 61d41fb687 - Show all commits

View File

@ -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,