Skip to content

cleanup: remove redundant providedIn root declarations in Injection Tokens#64802

Merged
atscott merged 5 commits intoangular:mainfrom
SkyZeroZx:refactor/remove-provide-root-core
Nov 4, 2025
Merged

cleanup: remove redundant providedIn root declarations in Injection Tokens#64802
atscott merged 5 commits intoangular:mainfrom
SkyZeroZx:refactor/remove-provide-root-core

Conversation

@SkyZeroZx
Copy link
Contributor

@SkyZeroZx SkyZeroZx commented Oct 30, 2025

This PR add the following commits :
refactor(core): remove redundant providedIn: 'root' from injection tokens
refactor(forms): remove redundant providedIn: 'root' from injection tokens
refactor(router): remove redundant providedIn: 'root' from injection tokens
refactor(platform-server): remove redundant providedIn: 'root' from injection tokens
refactor(platform-browser): remove redundant providedIn: 'root' from injection tokens

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.dev 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

…tokens

Removes unnecessary `providedIn: 'root'` declarations from injection tokens
@pullapprove pullapprove bot requested a review from JeanMeche October 30, 2025 14:58
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Oct 30, 2025
@ngbot ngbot bot added this to the Backlog milestone Oct 30, 2025
@SkyZeroZx
Copy link
Contributor Author

Should we group the changes into a single PR with multiple commits, since I see something similar in other packages?

@JeanMeche
Copy link
Member

Yeah lets do a single PR. A single commit can be fine targeting "core", as this is a "core" api usage.

… tokens

Removes unnecessary `providedIn: 'root'` declarations from injection tokens
…n tokens

Removes unnecessary `providedIn: 'root'` declarations from injection tokens
… injection tokens

Removes unnecessary `providedIn: 'root'` declarations from injection tokens
…m injection tokens

Removes unnecessary `providedIn: 'root'` declarations from injection tokens
@angular-robot angular-robot bot added area: server Issues related to server-side rendering area: forms area: router labels Oct 30, 2025
@SkyZeroZx SkyZeroZx changed the title refactor(core): remove redundant providedIn: 'root' from injection … cleanup: remove redundant providedIn root declarations in Injection Tokens Oct 30, 2025
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release target: rc This PR is targeted for the next release-candidate and removed target: patch This PR is targeted for the next patch release labels Oct 30, 2025
@atscott atscott merged commit 97169b4 into angular:main Nov 4, 2025
27 checks passed
@atscott
Copy link
Contributor

atscott commented Nov 4, 2025

This PR was merged into the repository. The changes were merged into the following branches:

@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, 2025
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 area: core Issues related to the framework runtime area: forms area: router area: server Issues related to server-side rendering target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants