ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

Compatibility with new ui-router 1.0.0

Open jbadeau opened this issue 8 years ago • 4 comments

Hi,

Do you know if the latest release is compatible with the ui-router 1.0.0 code base?

More specifically, I am getting an exception when registering future states:

Error: Couldn't determine parent state of future state. FutureState:{"stateName":"main.foo","urlPrefix":"/foo","type":"ocLazyLoad","module":"foo","name":"main.foo","url":"^/foo"}

angular: 1.5.0 ui-router: 1.0.0-alpha.4 ui-router-extras: 0.1.2

$stateProvider.state('main', {
    abstract : true,
    url : '/main',
    controller : require('../controllers/mainController'),
    controllerAs : '$ctrl',
    template : require('text!../templates/mainTemplate.html'),
});

$futureStateProvider.futureState({
    'name' : 'main.foo',
    'url' : '/foo',
    'type' : 'ocLazyLoad',
    'module' : 'foo'
});

$futureStateProvider.futureState({
    'name' : 'main.bar',
    'url' : '/bar',
    'type' : 'ocLazyLoad',
    'module' : 'bar'
});

This code was working fine against ui-router 0.2.15

jbadeau avatar May 04 '16 08:05 jbadeau

future states are not compatible with ui-router 1.0, sorry.

UI-Router 1.0 final will probably be released without any future states support. I'd like to bake something like future states (but better, simpler) into a ui-router release after 1.0

christopherthielen avatar May 09 '16 21:05 christopherthielen

@christopherthielen any update on this? I was super-excited to include lazy-load modules/future states in my app and BAM.... do you think that we some work is possible to make future states with parents working also with ui-router 1.0?

p.s. future states without parents are working with [email protected].

BTW thx a lot for your awesome modules.

rbarilani avatar Aug 10 '16 09:08 rbarilani

See https://github.com/christopherthielen/ui-router-extras/issues/336

christopherthielen avatar Aug 17 '16 18:08 christopherthielen

:+1: For me this one can be closed. Looking forward for ui-router 1.0 next releases! Thanks.

rbarilani avatar Aug 17 '16 23:08 rbarilani