No, you have to specify the exact type you want to...
# tornadofx
e
No, you have to specify the exact type you want to have injected. If you think about it, what if you had two scope instances that extended from
ItemViewModel<WeekTimetable>
- how would the framework choose? What you could do however, is pass a parameter to the Fragment, and use
find(specificSubclass)
to look up the ViewModel instead.