File tree Expand file tree Collapse file tree
resources/data/deck/learnneo/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,3 +137,19 @@ class MainView extends Container {
137137}
138138Neo.setupClass(MainView);
139139</pre >
140+
141+ The output of this demo is supposed to exactly look the same like the previous demo.
142+
143+ This time we nest our Labels into a Container with a fit layout.
144+ Just for demo purposes, we want to avoid overnesting inside real apps.
145+
146+ Our top level VM now only contains the ` hello ` data prop, and we added a second VM inside the nested Container
147+ which contains the ` world ` data prop.
148+
149+ As a result, the bindings for all 3 Labels contain a combination of data props which live inside different VMs.
150+ As long as these VMs are inside the parent hierarchy this works fine.
151+
152+ The same goes for the Button handlers: ` setData() ` will find the closest matching data prop inside the VM parent chain.
153+
154+ We can even change data props which live inside different VMs at once. As easy as this:</br >
155+ ` setData({hello: 'foo', world: 'bar'}) `
You can’t perform that action at this time.
0 commit comments