Skip to content

Conversation

crisbeto
Copy link
Member

Currently we generate unique IDs by declaring a file-level variable and incrementing it. The problem is that if there are multiple versions of Angular on the page at the same time, the IDs may collide. These changes switch to generating the variables through a common service that add the APP_ID to the ID.

@crisbeto crisbeto added merge: preserve commits When the PR is merged, a rebase and merge should be performed target: rc This PR is targeted for the next release-candidate labels Oct 31, 2024
@crisbeto crisbeto force-pushed the id-gen branch 6 times, most recently from d17ddf5 to 9dda5b0 Compare October 31, 2024 23:21
Adds a service to generate unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
Switches to using the ID generator service to create unique IDs.
@crisbeto crisbeto marked this pull request as ready for review November 1, 2024 10:39
@crisbeto crisbeto requested a review from a team as a code owner November 1, 2024 10:39
@crisbeto crisbeto requested review from andrewseguin and mmalerba and removed request for a team November 1, 2024 10:39
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 4, 2024
@crisbeto crisbeto merged commit a13699e into angular:main Nov 4, 2024
25 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker merge: preserve commits When the PR is merged, a rebase and merge should be performed target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants