modificaciones ui-router para que cargue las subsistas
This commit is contained in:
parent
a930b15963
commit
f344f90885
|
@ -17,14 +17,13 @@ function config($stateProvider, $urlRouterProvider) {
|
||||||
|
|
||||||
core.splitingRegister.registerGraph(deps);
|
core.splitingRegister.registerGraph(deps);
|
||||||
|
|
||||||
$urlRouterProvider.otherwise('/client/index');
|
$urlRouterProvider.otherwise('/client');
|
||||||
|
|
||||||
for (var file in routes)
|
for (var file in routes)
|
||||||
routes[file].forEach(function (route) {
|
routes[file].forEach(function (route) {
|
||||||
$stateProvider.state(route.state, {
|
$stateProvider.state(route.state, {
|
||||||
url: route.url,
|
url: route.url,
|
||||||
template: route.template,
|
template: route.template,
|
||||||
views: route.views,
|
|
||||||
resolve: {
|
resolve: {
|
||||||
loader: loader(route)
|
loader: loader(route)
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<vn-left-menu items="$ctrl.items" descriptor="$ctrl.descriptor"></vn-left-menu>
|
<vn-left-menu items="$ctrl.items" descriptor="$ctrl.descriptor"></vn-left-menu>
|
||||||
</vn-empty>
|
</vn-empty>
|
||||||
<vn-auto>
|
<vn-auto>
|
||||||
<vn-customer-basic-data></vn-customer-basic-data>
|
<vn-vertical ui-view></vn-vertical>
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
|
|
|
@ -1,8 +1,20 @@
|
||||||
[{
|
[
|
||||||
url: '/client/index',
|
{
|
||||||
state: 'client-index',
|
url: '/client',
|
||||||
|
state: 'client',
|
||||||
template: '<vn-client-index full-height></vn-client-index>',
|
template: '<vn-client-index full-height></vn-client-index>',
|
||||||
module: 'crud',
|
module: 'crud',
|
||||||
description: '',
|
description: '',
|
||||||
image: '',
|
image: '',
|
||||||
}]
|
},
|
||||||
|
{
|
||||||
|
url: '/basic-data',
|
||||||
|
state: 'client.details',
|
||||||
|
template: '<vn-customer-basic-data full-height></vn-customer-basic-data>',
|
||||||
|
module: 'crud',
|
||||||
|
description: '',
|
||||||
|
image: '',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue