thiagobustamante / typescript-ioc

A Lightweight annotation-based dependency injection container for typescript.
MIT License
526 stars 64 forks source link

Injection not working inside a constructor #5

Closed samuelcardoso closed 7 years ago

samuelcardoso commented 7 years ago
constructor(@Inject protected myObject: MyObject)
{
  super(myObject);
}

myObject is undefined.

thiagobustamante commented 7 years ago

I known @samuelcardoso, and we debugged this issue in his computer. The problem was related to a bug in typescript-rest dependency control. To ensure that this behavior is working fine here, I also include a test case here.

himalayazest commented 1 year ago

@samuelcardoso @thiagobustamante This is still not resolved. Facing same issue, please add some documentation for the root cause found and the workaround for this.