I have a ViewBag
data from the controller that I get in the View
. However, my view is made of multiple components and a component (Which is a html
template and relevant JavaScript
), has a placeholder for this data where I need to display this data.
How would I pass this @ViewBag.Data
to the placeholder in another view
(Template here). ?
Or, would it be easy to consider passing the data from Controller
to another view
?
Please help me with a sample snippet