I think "A Master/Detail example" in the "Scopes" ...
# tornadofx
s
I think "A Master/Detail example" in the "Scopes" section of the Guide shows you how to do this.
s
Yeah, I've read through the guide for ViewModel stuff but I can't seem to wrap my head around it 😞 Maybe its just coming from a non-MVC background which is making it difficult, or having never worked with bindings before.
s
I think you want a controller that you inject into both FirstView and RenameFragmentTest, and have the SimpleStringProperty in the controller.
e
Stephen is correct. You also need to make sure you never instantiate UIComponents manually. Let me rewrite your code 🙂