Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 712 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 712 Bytes

Make ASP.NET MVC App into SPA

This project demonstrates the virtual DOM filter for ASP.NET MVC applications.

The virtual DOM filter does the content negotiation to output HTML or the Virtual DOM. The client-side AppRun application alters the menu links and switches the application into the SPA mode.

[VirtualDom]
public ActionResult About()
{
    ViewBag.Message = "Your application description page.";
    return View();
}

Initial request returns full HTML page. screenshot

AJAX request returns the Virtual DOM as JSON. screenshot

Have fun and send pull requests.

License

MIT

Copyright (c) 2017 Yiyi Sun