Shawn Wildermuth
Shawn Wildermuth is a nine-time Microsoft MVP (Data) and is involved with Microsoft as a Data Insider and ASP.NET Insider. He is also the author of seven books and dozens of articles on software development. He is one of the Wilder Minds (http://wilderminds.com/">http://wilderminds.com) or at his blog at http://wildermuth.com/">http://wildermuth.com.
Modern Web Development
Aug 10, 2012 at 2:33 AMThanks Andrew. As far as the controller/view pattern I am using here. The goal of the home-index.js pattern is to quickly implement the initialization for a page. It is common for me to have the same underlying implementation called by both pages. So in your example, I'd simply put the code that two pages share in a JavaScript 'class' or 'module' and call from each initializer.