Skip to content

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

Closed
@gfreeau

Description

@gfreeau

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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions