Angular DI Injection token's type does not match a factory's return value type but service accepts

后端 未结 0 1396
难免孤独
难免孤独 2021-01-30 05:06

Why is it possible to provide an injection token of some type but can pass an actual value of a differing type and this be accepted in a service injected with the token?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题