Angular 4 错误:无法激活已激活的插座

Ini*_*igo 5 angular

我知道在SO中已经有一些关于这个错误的问题,但没有一个有任何有见地的答案。

我有 2 个并排组件,我试图在路由之间导航时为它们的宽度设置动画。我的路由配置如下所示:

export const routes = [
{ path: '', component: IndexComponent, children:
    [
        { path: 'home', children:
            [
                { path: '', component: FirstComponent, outlet: 'first', data: { state: 'a' } },
                { path: '', component: SecondComponent, outlet: 'second', data: { state: 'b' } }
            ]
        },
        { path: 'about', children:
            [
                { path: '', component: FirstComponent, outlet: 'first', data: { state: 'b' } },
                { path: '', component: SecondComponent, outlet: 'second', data: { state: 'a' } }
            ]
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

];

但它告诉我插座已经激活 - 带有名义错误。

也许有人可以告诉我上面的代码是否有明显的错误?如果没有,我想问题出在其他地方......

谢谢

gig*_*DIE 0

我首先向Angular 团队提交了一个问题,然后我决定进行更改并提交 PR 以启用此处的行为。

请看一下,祈祷 PR 将被合并并在下一个版本中提供。

干杯