Skip to content
Permalink
Browse files

docs($location): clarify return value for path method

docs for return of path() inaccurately describe the function’s return when a value is passed in.

Closes #14544
  • Loading branch information
FGasper authored and Narretz committed May 6, 2016
1 parent 938bd45 commit 0bd2efb99456f4e54a3ac4f736b5fb144e8d9858
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ng/location.js
@@ -482,7 +482,7 @@ var locationPrototype = {
* ```
*
* @param {(string|number)=} path New path
* @return {string} path
* @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter
*/
path: locationGetterSetter('$$path', function(path) {
path = path !== null ? path.toString() : '';

0 comments on commit 0bd2efb

Please sign in to comment.
You can’t perform that action at this time.