This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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
Description
$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)