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

docs($location): describe your change... #14544

Merged
merged 1 commit into from
May 6, 2016
Merged

Conversation

FGasper
Copy link
Contributor

@FGasper FGasper commented Apr 29, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
docs update

What is the current behavior? (You can also link to an open issue here)
inaccurate docs

What is the new behavior (if this is a feature change)?
correct docs

Does this PR introduce a breaking change?
no

Please check if the PR fulfills these requirements

Other information:

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

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

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

1 similar comment
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@FGasper
Copy link
Contributor Author

FGasper commented Apr 29, 2016

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think objects are supported per se, they just work because we call toString on path, which was added here: #7054. I think we shouldn't have built in handling for intergers, as the docs clearly say the path must be a string.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disregard my last comment, I was in the wrong line.

@Narretz Narretz self-assigned this May 6, 2016
@Narretz Narretz added this to the Backlog milestone May 6, 2016
@Narretz Narretz merged commit 0bd2efb into angular:master May 6, 2016
Narretz pushed a commit that referenced this pull request May 6, 2016
docs for return of path() inaccurately describe the function’s return when a value is passed in.

Closes #14544
Narretz pushed a commit that referenced this pull request May 6, 2016
docs for return of path() inaccurately describe the function’s return when a value is passed in.

Closes #14544
@FGasper FGasper deleted the patch-1 branch March 26, 2017 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants