I'm using angular ui router to handle state transitions, and I have a state that I can't seem to properly resolve.
The state is:
.state('organization.program.editor', {
url: "/editor/{contentId:[0-9]{1,8}}/{workflowStateId:[0,9]{1,8}}/{projectId:[0,9]{1,8}}",
templateUrl: "editor-editor",
controller: 'EditorController as vm',
resolve: {
editorModel: ['$stateParams', 'editorService', 'orgService',
function ($stateParams, editorService, orgService) {
debugger;
//edited for brevity
return null;
}]
},
params: { contentId: {}, orgId: {}, programId: {},
workflowStateId: { value: '-1' }, projectId: { value: '-1' } }
})
If I navigate to /editor/2445, the transition is accepted and it successfully navigates, and my optional parameters are their defaults, -1 and -1.
However, if I try /editor/2445/1, or /editor/2445/1/1, it does not recognize the state.
What am I missing?