I have a ViewModel that is used for a view. Within that view, I open up a Partial View that is used for one of the HTML tabs that I've put up.
I would like to use another ViewModel for that Partial View so at the moment I have a parent ViewModel and then have a child ViewModel.
Is it better to do it like this or have it completely separated by instead of using @Html.Partial()
, I should use @Html.RenderAction
?