I have an asp.net mvc application (Not single page) and try to apply requireJS and look for good examples to apply the pattern. I have read a couple of blog posts, but didn't find any good examples. If you know any good examples or can offer some good advice, I would highly appreciate it.
take a look at this one, I think its well explained. https://web.archive.org/web/20150502094922/http://tech.pro/tutorial/1156/using-requirejs-in-an-aspnet-mvc-application
There is no difference if it's ASP.NET MVC, Java, Ruby or anything else. JavaScript is a client side. I would say if you want to properly use RequireJS, forget minifiers, bundles and all that ASP.NET specific stuff. Have node on your build server and make it part of the build process to optimize using r.js.
I recently blogged about it: Understanding AMD & RequireJS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With