-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi there. I was looking for a injectable service library for typescript when I came across this. It looks really nice, however the documentation is as you said in the readme - incomplete. I would like to help do this in a PR.
I have been experimenting on my own with this and found that it does not automatically bind classes when you use .resolve, which means I have to manually call container.bindClass() for each class you want to inject. I know I can use @Injectable but this will not work in async factories or other places. Is this a feature that we could add? Maybe through a @AutoInject decorator? Or a option in @Injectable (eg.
@Injectable({bind: true}))
Actually, if this is even possible in the first place, it could be a .autoBind() function in container that will auto bind any injectable class if its not marked as manual?
Example of error that occurs: Error: Symbol not bound: class ConfigService {
For some reason I feel like this is much easier than writing multiple bind lines...