Mounted ViewModel
This page was created by Lars.olofsson@mdriven.net on 2024-05-23. Last edited by Edgar on 2025-01-20.


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.

Note: 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).

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments