-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(common): rename httpResource function in factory #60022
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
Conversation
c3785e4 to
24d8a46
Compare
|
Nice catch — the error message highlights the importance of the function name. |
thePunderWoman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
As the function in the factory was named `httpResourceRef`, error NG0203 had with the following message: ``` Error: NG0203: httpResourceRef() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`. Find more at https://angular.dev/errors/NG0203 ```
24d8a46 to
2328615
Compare
|
Caretaker note: this is safe to merge. the presubmit failures are unrelated. |
|
This PR was merged into the repository by commit fc4a56d. The changes were merged into the following branches: main |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |

PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
As the function in the factory was named
httpResourceRef, error NG0203 had with the following message:What is the new behavior?
The new message mentions
httpRessourceas shown by the added unit testDoes this PR introduce a breaking change?
Other information