Mounted ViewModel
No edit summary
No edit summary
Line 5: Line 5:
The result will be the same as if you would repeat all the things from the ViewModel inside a new nesting from the mount-point. The new Nesting will have the same name as the mounted ViewModel.
The result will be the same as if you would repeat all the things from the ViewModel inside a new nesting from the mount-point. The new Nesting will have the same name as the mounted ViewModel.


One limitation on the mounted ViewModel is that you cannot use the vCurrent_Root in the mounted (since it is owned by the outer view and has the value of the outer ViewModel)
One limitation on the mounted ViewModel is that you cannot use the [[Built in ViewModel variables|vCurrent_Root]] in the mounted (since it is owned by the outer view and has the value of the outer ViewModel)

Revision as of 17:36, 28 May 2024

You can insert a ViewModel within another viewmodel at any point where the column in the ViewModel is an object and there's no associated viewmodel class.

.

The result will be the same as if you would repeat all the things from the ViewModel inside a new nesting from the mount-point. The new Nesting will have the same name as the mounted ViewModel.

One limitation on the mounted ViewModel is that you cannot use the vCurrent_Root in the mounted (since it is owned by the outer view and has the value of the outer ViewModel)

This page was edited 11 days ago on 06/17/2024. What links here