* Bind to a class optionally decorated with `@injectable`. Based on the * introspection of the class, it calls `toClass/toProvider/toDynamicValue` * internally. The current binding key will be preserved (not being overridden * by the key inferred from the class or options). * * This i
(
ctor: DynamicValueProviderClass<T> | Constructor<T | Provider<T>>,
)
| 916 | * @param ctor - A class decorated with `@injectable`. |
| 917 | */ |
| 918 | toInjectable( |
| 919 | ctor: DynamicValueProviderClass<T> | Constructor<T | Provider<T>>, |
| 920 | ) { |
| 921 | this.apply(bindingTemplateFor(ctor)); |
| 922 | return this; |
| 923 | } |
| 924 | |
| 925 | /** |
| 926 | * Bind the key to an alias of another binding |
no test coverage detected