Search code examples
javascript.netasp.net-mvcasp.net-mvc-4single-page-application

Converting a large app to SPA


Are there any best practices for building a larger app as an SPA ? I am dealing with something that currently has 50 views.


Solution

  • Dove has a good point, a SPA with 50 views sounds very large, and there probably isn't a silver bullet to convert your app.

    A few approaches worth spiking/investigating...

    • Seperate your 50 views into application areas. Then use ASP.Net MVC Views & WebAPI to push down the manifest+scaffold to create your views.
    • It's very very new, but why not check out TypeScript for building the application in JavaScript

    Also, look at the 50 views, and see if you can find a smarter way to provide the same functionality, but in fewer views (without just cramming it into the same page).