I think "A Master/Detail example" in the "Scopes" section of the Guide shows you how to do this.
s
Shan
01/10/2019, 1:26 AM
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
sbyrne
01/10/2019, 2:09 AM
I think you want a controller that you inject into both FirstView and RenameFragmentTest, and have the SimpleStringProperty in the controller.
e
edvin
01/10/2019, 11:49 AM
Stephen is correct. You also need to make sure you never instantiate UIComponents manually. Let me rewrite your code 🙂