1
4

2 に答える 2

3

Currently you need a type, a string name or an OpaqueToken as key for providers.
Interfaces are not supported because the information is not available at runtime. If this gets added, I'm sure DI will support them (it's already supported in Dart).

于 2016-03-20T15:38:10.127 に答える