Base solution for your next web application
Open Closed

How does ASP MVC routing works in Abp for AngularJS #2733


User avatar
0
chrisk created

Hi,

I'd like to ask how is that achieved in Abp that without adding controllers or routes it is possible to serve .cshtml files to client like '/App/Main/views/tenants/index.cshtml' Or in fact it does something similar to dynamic web api controller builder ?

I'm really curious and it would be handy to know how to apply it to projects that can not use Abp.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    It is done here <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero-template/blob/master/src/AbpCompanyName.AbpProjectName.WebMpa/Abp/Framework/scripts/libs/angularjs/abp.ng.js#L127">https://github.com/aspnetboilerplate/mo ... ng.js#L127</a>.

    Bacically, we load *.cshtml files using a controller.

  • User Avatar
    0
    chrisk created

    Hi @ismcagdas

    It makes perfect sense now :)

    Thank you for that.