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

$state.go should fail if actual params won't validate #1433

Closed
christopherthielen opened this issue Oct 8, 2014 · 0 comments
Closed

$state.go should fail if actual params won't validate #1433

christopherthielen opened this issue Oct 8, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@christopherthielen
Copy link
Contributor

Currently, we allow a transition to succeed even if the params don't validate against the url (or type).

With this state:

.state({ 
  name: 'foo',
  url: '/foo/{fooid:[0-9]{5}}'
});

we allow $state.go(foo, {fooid: 123456789}) to succeed. We should fail this transition because the actual params are not valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant