Skip to content
New issue

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

Parameter types cannot be declared in the param config block #2294

Closed
christopherthielen opened this issue Oct 6, 2015 · 0 comments · Fixed by #2296
Closed

Parameter types cannot be declared in the param config block #2294

christopherthielen opened this issue Oct 6, 2015 · 0 comments · Fixed by #2296
Assignees
Milestone

Comments

@christopherthielen
Copy link
Contributor

See discussion in #983 and original PR #2289

This should work, but does not:

.state({
 name: 'fooState',
 url: '/{param1:string}/{param2}',
 params: {
  param2: {
    value: 100, // default val
    type: 'int' // Setting a url param type here doesn't work
  },
  param3: {
    type: 'int' // url-less parameter type by name doesn't work
  }
 }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants