We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 938bd45 commit 0bd2efbCopy full SHA for 0bd2efb
src/ng/location.js
@@ -482,7 +482,7 @@ var locationPrototype = {
482
* ```
483
*
484
* @param {(string|number)=} path New path
485
- * @return {string} path
+ * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter
486
*/
487
path: locationGetterSetter('$$path', function(path) {
488
path = path !== null ? path.toString() : '';
0 commit comments