DEV Community

Discussion on: How to Integrate Vue with ASP .NET MVC - The synergy between the two

Collapse
 
scottsea profile image
ScottSEA

This is great for half the pipeline - have you found a good solution for getting the Vue data back into the MVC View Model?

Collapse
 
proticm profile image
Milos Protic

Thanks.

I usually invoke a POST request with the Vue data formatted as JSON. MVC binder will do the rest and map the incoming object to the view model, but of course, you need to be careful and name the Vue data properties the same as the view model has them named.