Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How AngularJs StateProvider Support .cshtml #2360


User avatar
0
cangunaydin created

Hello, I am just curious how the ui states in angularjs application can render .cshtml files, partial views? Are there any extension for that? Because as i know it needs to go to the server side to render the html isn't it so?


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

    Hi,

    There is an intercetor defined for angular in abp and it handles this. You can check it here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/5fef9a8e7b894fd9586eba9f8dc50bbd3e629b2f/src/MyCompanyName.AbpZeroTemplate.Web/Abp/Framework/scripts/libs/angularjs/abp.ng.js#L129">https://github.com/aspnetzero/aspnet-ze ... ng.js#L129</a>.

    When a *.cshtml file is requested, ABP calls AbpAppViewController's Load action, cshtml rendered on the server and returned to client.

  • User Avatar
    0
    cangunaydin created

    Oh thank you for the reply. Now it is all clear. I was searching for that.