I am looking for a way to control large amounts of JavaScript code in a ASP.Net MVC web application.I have been looking at Ember.js and whilst it's pretty compelling it takes control of the routing and as such treats the server as little more than a place from which to receive API calls. This isn't really useful for what I need.I wondered if there recommendations for similar projects out there that allow faster, more structured, JavaScript but in traditional server-based web applications?
JavaScript Frameworks for traditionally structured web applications
javascript;ember.js
Take a look at knockout.js it is an MVVM library.Like most frameworks it does not have any routing.Rather it has a concept of observables.What this means is it can observe any DOM elements for changes and once detected it updates the UI automatically.This can take care of most of the DOM interaction that we do in single page applications like showing/hiding certain parts of UI based on user actions.For me knockout.js has the cleanest syntax in javascript frameworks.All the bindings are done through html 5 data* attributes.You might also want to check out this excellent article that compares the most popular javascript mvc frameworks.If you already have written lots of client side code and are considering migrating to knockout.js check out this question that I asked on stack overflow.The answer really helped me in finding an effective way to do this.