Closed dulcetti closed 6 years ago
The config was:
{
name: 'foo',
component: 'foo',
url: '/',
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad');
return require.ensure([], () => {
import('./foo.module');
$ocLazyLoad.load({ name: 'foo.page' });
}, 'foo.page');
}
}
But now I resolved changing to:
{
name: 'foo',
component: 'foo',
url: '/',
resolve: {
load: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad');
return require.ensure([], () => {
import('./foo.module');
$ocLazyLoad.load({ name: 'foo.page' });
}, 'foo.page');
}
}
}
When I use the ocLazyLoad, the url parameters they are empty. For example,
http://localhost:3000/?utm_content=test
when open on browser stay http://localhost:3000/What's happen?