Angular 2+ and asp.net core server rendering
I need some guidance on rendering server with angular 2+ and .net core, I have been doing some investigation about it and found some helpful information: Angular universal is the project for this matter:
Angular 2 Server Rendering
I found a great example on how to apply angular universal and .net core on this repo: MarkPieszak repository. Please have a look to the controller and the way is implemented.
On the other hand I found another way to render in the server side using MVC views as per posted by MVP Damien:
Blog: USING ANGULAR IN AN ASP.NET CORE VIEW WITH WEBPACK
Repo: damienbod/AspNetCoreMvcAngular
Both are using webpack and .net core. I just want to ask which approach is better and cleaner. The advantages and disadvantages on each of them. I feel is easier to implement Damien approach based on controller code, but there is no angular universal implementation which I believe may have some drop backs.
链接地址: http://www.djcxy.com/p/31320.html上一篇: 为服务器端渲染添加新的CSS