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)
-
0
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.
-
0
Oh thank you for the reply. Now it is all clear. I was searching for that.