Both Fragment and View inherits from UIComponent, ...
# tornadofx
e
Both Fragment and View inherits from UIComponent, and the only difference is that View is a singleton, and can be used via the
inject()
delegate. Fragments can be "injected" via the similar
by fragment()
delegate, but you get a new instance wherever you "inject" it.