X Tutup
The Wayback Machine - https://web.archive.org/web/20220105000658/https://github.com/angular/angular/pull/37775
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(compiler): Shorten %COMP% to %C% #37775

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

@ngwattcos
Copy link
Contributor

@ngwattcos ngwattcos commented Jun 26, 2020

This commit reduces the length of the component placeholder. No functionality changes.

Shortening the attribute allows a smaller bundle size and a smaller download before the platform-server shis the component attribute with component ID.

All spec tests involving %COMP% have been updated to use %C%.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove pullapprove bot requested a review from alxhub Jun 26, 2020
@ngwattcos ngwattcos force-pushed the shorten-attribute-3 branch 2 times, most recently from 25d2afd to ede908e Jun 26, 2020
This commit reduces the length of the component placeholder. No functionality changes.

All spec tests were updated to use %C% instead of %COMP%.
Copy link
Member

@petebacondarwin petebacondarwin left a comment

Hi @ngwattcos - sorry for the time it has taken to review this PR.
The tests have changed since you made it, so the files are now conflicted.
Further we are moving the compliance tests over to a new model, so this PR will need to update the new "test-cases" as well.

@ngbot ngbot bot removed this from the needsTriage milestone Dec 9, 2020
@ngbot ngbot bot added this to the Backlog milestone Dec 10, 2020
@ngbot ngbot bot added this to the Backlog milestone Dec 10, 2020
@jessicajaniuk
Copy link
Contributor

@jessicajaniuk jessicajaniuk commented Nov 2, 2021

@ngwattcos @petebacondarwin This would be a great optimization to land. If we can get it rebased and updated, that would be great.

@petebacondarwin
Copy link
Member

@petebacondarwin petebacondarwin commented Nov 6, 2021

Also, we determined that (although this shouldn't be) there is a chance of it being a breaking change, in the case where someone is relying upon the previous form of these ids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
X Tutup