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

Place phoneId binding in a proper HTML node #7561

Closed
wants to merge 1 commit into from

Conversation

jmpalacios
Copy link
Contributor

The code where the phoneId binding in the phone-detail.html template is first explained in step 7 of the tutorial doesn't make it a child of a proper HTML node, which makes the end-to-end test against the view (also introduced in step 7) fail.

The test acquires the binding right from the view (by.binding('phoneId')), and apparently this operation fails when the binding is not a child of an HTML node, and therefore the entire test also fails. As soon as the binding is placed inside a tag pair, the binding is found and the test passes. The code on github for step 7 has it right, the binding is within the span tags, but in the documentation I'm patching here the span's are missing.

The code where the phoneId binding in the phone-detail.html template is first explained in step 7 of the tutorial doesn't make it a child of a proper HTML node, which makes the end-to-end test against the view (also introduced in step 7) fail.

The test acquires the binding right from the view (by.binding('phoneId')), and apparently this operation fails when the binding is not a child of an HTML node, and therefore the entire test also fails. As soon as the binding is placed inside a <span></span> tag pair, the binding is found and the test passes. The code on github for step 7 has it right, the binding is within the span tags, but in the documentation I'm patching here the span's are missing.
@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#7561)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@jmpalacios
Copy link
Contributor Author

The code contribution doc says that for small documentation fixes we don't need to worry about filing issues first. This is my first contribution so I didn't know about the extensive guidelines, and it's a very small fix so I hope it's alright to consider & merge as is.

If not, I'll file it again in a while when I get the chance to correct the format.

@caitp
Copy link
Contributor

caitp commented May 23, 2014

@jmpalacios it's all good =)

@caitp caitp closed this in 3f365f5 May 23, 2014
@caitp
Copy link
Contributor

caitp commented May 23, 2014

Merged, thanks a bunch

@jmpalacios
Copy link
Contributor Author

Great! Thanks for taking a look at it ;)

@jmpalacios jmpalacios deleted the patch-1 branch May 23, 2014 05:35
RichardLitt pushed a commit to RichardLitt/angular.js that referenced this pull request May 24, 2014
Place phoneId binding in a proper HTML node

The code where the phoneId binding in the phone-detail.html template is first explained in step 7
of the tutorial doesn't make it a child of a proper HTML node, which makes the end-to-end test
against the view (also introduced in step 7) fail.

The test acquires the binding right from the view (by.binding('phoneId')), and apparently this
operation fails when the binding is not a child of an HTML node, and therefore the entire test also
fails. As soon as the binding is placed inside a <span></span> tag pair, the binding is found and
the test passes. The code on github for step 7 has it right, the binding is within the span tags,
but in the documentation I'm patching here the span's are missing.

☆.。.:*・゜☆ MERCI ☆.。.:*・゜☆

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

Successfully merging this pull request may close these issues.

3 participants