Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Error in $location.path(path) with integer argument #7054

Closed
darkoromanov opened this issue Apr 9, 2014 · 0 comments
Closed

Error in $location.path(path) with integer argument #7054

darkoromanov opened this issue Apr 9, 2014 · 0 comments

Comments

@darkoromanov
Copy link

$location.path(1) throws an error if the argument is integer, should you cast the argument in the Angular.js core?

TypeError: Object 1 has no method 'charAt'
    at http://code.angularjs.org/1.2.13/angular.js:9034:17
    at Object.path (http://code.angularjs.org/1.2.13/angular.js:9129:22)
    at site.saveRud.then.$.growl.error.message (http://ruds4.local/js/controllers.js:351:27)
    at wrappedCallback (http://code.angularjs.org/1.2.13/angular.js:11033:81)
    at http://code.angularjs.org/1.2.13/angular.js:11119:26
    at Scope.$eval (http://code.angularjs.org/1.2.13/angular.js:12045:28)
    at Scope.$digest (http://code.angularjs.org/1.2.13/angular.js:11871:31)
    at Scope.$apply (http://code.angularjs.org/1.2.13/angular.js:12151:24)
    at done (http://code.angularjs.org/1.2.13/angular.js:7909:45)
    at completeRequest (http://code.angularjs.org/1.2.13/angular.js:8110:7) 

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

Successfully merging a pull request may close this issue.

3 participants