We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am merging six different angular apps to one app, and have a 'root' parent and all the old apps at lazy child states under that.
Like this:
const rootState = { name: 'root', url: '', component: AppComponent, redirectTo: 'start' }; const nompFutureState = { parent: 'root', name: 'nomp.**', url: '/nomp', loadChildren: () => import('./nomp/nomp-app.module').then(mod => mod.NompAppModule) }; const nompPlusFutureState = { parent: 'root', name: 'plus-app.**', url: '/nomp-plus', loadChildren: () => import('./nomp-plus/nomp-plus.module').then(mod => mod.NompPlusModule) };
The "Nomp" state declaration:
const appState: Ng2StateDeclaration = { parent: 'root', name: 'nomp', component: NompAppComponent, url: '/nomp' }
The "NompPlus" state declaration:
const plusAppState: Ng2StateDeclaration = { parent: 'root', name: 'plus-app', component: NompPlusComponent }
In the nompFutureState there is a 'quizzes' non-lazy state.
nompFutureState
const levelsState: Ng2StateDeclaration = { parent: "nomp", name: "quizzes", params: { "levelid": { type: "int", value: null, squash: true } }, redirectTo: transition => { let ts: TranslateService = transition.injector().get(TranslateService); let lang = ts.currentLang; return {state: "quizzes-" + lang, params: transition.params()}; } }
When adding this state I'm getting "Error: State 'quizzes' is already defined".
export const quizzesState: Ng2StateDeclaration = { parent: 'plus-app', name: "quizzes", url: "/quizzes", component: QuizzesComponent };
Here's the trace;
What's going wrong here? It's a blocker for me, so any hints are greatly appreciated. @christopherthielen
The text was updated successfully, but these errors were encountered:
Versions
"@angular/core": "10.2.4", "@uirouter/angular": "8.0.1", "@uirouter/core": "6.0.8", "@uirouter/rx": "0.6.5",
Sorry, something went wrong.
Nevermind, I ran the Visualizer, which made it obviously clear that I was too tired when hurrying through this.
No branches or pull requests
Hi,
I am merging six different angular apps to one app, and have a 'root' parent and all the old apps at lazy child states under that.
Like this:
The "Nomp" state declaration:
The "NompPlus" state declaration:
In the
nompFutureState
there is a 'quizzes' non-lazy state.When adding this state I'm getting "Error: State 'quizzes' is already defined".
Here's the trace;
What's going wrong here? It's a blocker for me, so any hints are greatly appreciated. @christopherthielen
The text was updated successfully, but these errors were encountered: