質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top