Durandal, ASP.NET MVC 4 multiple SPA site?

644 views Asked by At

My organization is interested in creating a multiple SPA site with Durandal. What is the best usage of ASP.NET MVC 4 and Durandal? An mapping of each SPA to an Area or other? There is a question using Areas bellow:

Durandal and MVC4 Areas for multiple SPAs

1

There are 1 answers

0
Chris Shepherd On BEST ANSWER

If you mean hosting multiple Durandal SPAs in one page there's some discussion on this here.

You'll probably want to host the Durandal SPAs in separate iframes otherwise you'll probably have problems with routing.

However, if you mean hosting different Durandal apps from one ASP.NET MVC site then it's easy: just serve them from different HTML files. Areas have nothing to do with Durandal really. They're more for a 'normal' web application.