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

Issue with the 'date' param causing an error on manual change #1564

Closed
gfreeau opened this issue Nov 18, 2014 · 1 comment
Closed

Issue with the 'date' param causing an error on manual change #1564

gfreeau opened this issue Nov 18, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@gfreeau
Copy link

gfreeau commented Nov 18, 2014

When using the new typed params feature, manually changing the url and hitting enter causes a javascript error.

i.e using this state config url

url: '/site/{siteId:int}?{startDate:date}',

When navigating to /site/1?startDate=2014-11-18 it works correctly.

However if you edit the url in the address bar to /site/1?startDate=2014-11-17 and hit enter, a javascript error occurrs.

TypeError: undefined is not a function
    at ArrayType.$UrlMatcherFactory.defaultTypes.date.equals (http://localhost:9010/vendor/angular-ui-router/release/angular-ui-router.js:1241:62)
@christopherthielen christopherthielen self-assigned this Nov 18, 2014
@christopherthielen christopherthielen added this to the 0.2.13 milestone Nov 18, 2014
@christopherthielen
Copy link
Contributor

http://bit.ly/UIR-Plunk
Can you put this example into a plunk for me?

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

3 participants