How can I use cshtml files with Durandal?

后端 未结 8 2281
你的背包
你的背包 2020-12-01 01:50

I got the DurandalJS StarterKit template on VS2012... All works great...

But in some views I need to do something like that:

@if (Roles.IsUserInRole(         


        
8条回答
  •  青春惊慌失措
    2020-12-01 02:13

    I'm not very familiar with DurandalJS but because it's a client-side system, it should make no difference what technology is used on the server to generate the HTML markup. So if you use Razor CSHTML files to generate the HTML on the server, DurandalJS should work just fine with it.

    If you're getting a particular error then please share that error, but I can't think of any reason why it wouldn't work.

提交回复
热议问题