hey, can anyone point me to some examples of doing...
# tornadofx
r
hey, can anyone point me to some examples of doing Inversion of Control with
by inject<>()
and regular classes (not Components)? Is there a clean way to inject non-components into components?
c
You're looking for
val foo: YourNonComponent by di()
, see https://edvin.gitbooks.io/tornadofx-guide/content/part2/Dependency%20Injection.html under the section "Third party injection frameworks"
👍 1
r
thanks for that