Join Slack
Powered by
No, you have to specify the exact type you want to...
# tornadofx
e
edvin
07/06/2017, 8:02 AM
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.
4
Views
Open in Slack
Previous
Next