I know there are already a few questions across SO concerning to this error, but none with any insightful answers.
I have 2 side-by-side components, and I am trying to animate their widths when navigating between routes. My route config looks like this:
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' } }
]
}
]
}
];
But it is telling me the outlet is already activated- with the titular error.
Perhaps someone can tell me if there is something obviously wrong with the above code? If not, I guess the problem lies elsewhere...
Thanks