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

docs(tutorial/3 - Components): Adding Tag to Angular Mapping Info #16740

Closed
wants to merge 4 commits into from
Closed

docs(tutorial/3 - Components): Adding Tag to Angular Mapping Info #16740

wants to merge 4 commits into from

Conversation

joej164
Copy link
Contributor

@joej164 joej164 commented Oct 19, 2018

I was confused when reading the tutorial on how the HTML phone-list tag was mapped to the AngularJS component name. Once I figured out it was the line of code that did this and how, I figured clarification would be helpful to other people.

Also, I initially thought the tag mapping was done at the filename since that was the only thing in the javascript that matched the HTML tags.

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

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

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

Does this PR introduce a breaking change?

Please check if the PR fulfills these requirements

  • [ X] The commit message follows our guidelines
  • Fix/Feature: Docs have been added/updated
  • Fix/Feature: Tests have been added; existing tests pass

Other information:

I was confused when reading the tutorial on how the HTML phone-list tag was mapped to the AngularJS component name.  Once I figured out it was the line of code that did this and how, I figured clarification would be helpful to other people.  

Also, I initially thought the tag mapping was done at the filename since that was the only thing in the javascript that matched the HTML tags.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). 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 (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

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 (if not, look below for help). 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 (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@joej164
Copy link
Contributor Author

joej164 commented Oct 19, 2018

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

@gkalpak
Copy link
Member

gkalpak commented Oct 24, 2018

It is super-awesome that you came back to improve things for others once you figured it out yourself. A true bridge builder 💯

That said, I feel that this is adequately explained earlier in that step:

Remember that (since components are also directives) the name of the component is in camelCase
(e.g. myAwesomeComponent), but we will use kebab-case (e.g. my-awesome-component) when
referring to it in our HTML. (See [here][case-styles] for a description of different case styles.)

Then, a little further below:

Let's see an example:

...
component('greetUser', { ... });

Now, every time we include <greet-user></greet-user> in our view, AngularJS will expand it into a
DOM sub-tree constructed using the provided template and managed by an instance of the specified
controller.

WDYT?

@joej164
Copy link
Contributor Author

joej164 commented Oct 24, 2018 via email

@gkalpak
Copy link
Member

gkalpak commented Nov 20, 2018

Sorry for the late response, @joej164. (On the bright side, the tutorial is now updated (using newer versions of Angular/jQuery, using npm for monaging dependencies (instead of the deprecated bower), etc.) 🎉)

I can't argue with the fact that you missed this bit of information on first read, so making sure people don't miss this link is important.
But, instead of adding a third mention of it, I would rather make it more clear in one of the previous mentions (see #16740 (comment)).

WDYT, about adding a more explicit explanation or alert-info div there?

@joej164
Copy link
Contributor Author

joej164 commented Nov 23, 2018

Yes, that works, i think all that is missing in the alert-info div for a newbie is an explicit example of the new element used in some HTML. I'll take a stab that and update my PR and see what you think.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@joej164
Copy link
Contributor Author

joej164 commented Nov 23, 2018

Alright so I did an update from my work computer and it now has my work email address listed as a contributer. While I could sign the CLA, i'm not sure that's a good idea from my work account, so i'm going to close this PR and open another one and reference this from that one.

@joej164 joej164 closed this Nov 23, 2018
@joej164 joej164 deleted the patch-1 branch November 23, 2018 18:31
@joej164 joej164 mentioned this pull request Nov 23, 2018
3 tasks
@joej164
Copy link
Contributor Author

joej164 commented Nov 23, 2018

#16768

As shown above, I updated the changes for this PR in #16768 to remove a work account of mine as a contributer of the PR.

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

Successfully merging this pull request may close these issues.

3 participants