-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Revert "fix(compiler): shouldn't throw when Symbol is used as DI toke… #15319
Conversation
angular#13701)" This reverts commit 8b5c6b2. This feature is not compatible with the `Injector.get` which now only takes `Type` or `InjectableToken`. `Symbol` is not a valid type. Closes angular#15183
what about strings? string can be used as a DI token but it's neither a Victor said anything can be used as a DI token. is it no longer true? |
@DzmitryShylovich For JIT, anything can be used as DI token. But for AOT, only strings and OpaqueToken work... |
plus classes (Types) I guess. ok, thanks.
|
@tbosch maybe it also makes sense to update |
@DzmitryShylovich Using We can't make |
@mhevery what do you think? |
Hi @DzmitryShylovich Yes we are tightening the type and Yes you are right, we should tighten the typings on |
angular#13701)" (angular#15319) This reverts commit 8b5c6b2. This feature is not compatible with the `Injector.get` which now only takes `Type` or `InjectableToken`. `Symbol` is not a valid type. Closes angular#15183 PR Close angular#15319
angular#13701)" (angular#15319) This reverts commit 8b5c6b2. This feature is not compatible with the `Injector.get` which now only takes `Type` or `InjectableToken`. `Symbol` is not a valid type. Closes angular#15183 PR Close angular#15319
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. |
No description provided.