Angular 2 server side mapping in ASP.NET with Edge.js

I am exploring the possibility of rendering Angular 2 on the server side using Edge.js in an ASP.NET MVC application.

I know that the Angular Universal Starter Kit has part of this equation: https://github.com/alexpods/angular2-universal-starter

However, it uses the Node.js server. I would prefer not to add the Node.js server as an additional web server on top of the existing IIS server. My thought is that I can render Angular on the server side using Edge.js (i.e., to run the necessary JavaScript to generate markup).

I am very new to Angular 2, so getting the example up and running is not trivial for me. Based on this closed-ended question, I would say that no effort is currently being made to add support for Edge.js (although at some point it was considered): https://github.com/angular/universal/issues/40

Does anyone know if server-side Angular rendering is possible using Edge.js from an ASP.NET MVC application?

By the way, I'm stuck on .NET 4.5.2 (this requires Umbraco), so I can’t switch to .NET Core and use this: https://github.com/MarkPieszak/aspnetcore-angular2-universal

+8
angular asp.net-mvc angular-universal
source share

No one has answered this question yet.

See related questions:

472
How to make ASP.NET MVC string representation?
8
Angular 2+ and rendering the main asp.net server
7
server side rendering does not work in corner universal in iis
6
What is the best way to build an Angular 4 application on top of Asp.NET Core?
3
Angular 4 server-side rendering in Asp.Net MVC 5 Framework (non Core)
2
Corner isPlatformBrowser check against PLATFORM_ID does not prevent server-side pre-rendering
2
Running Edge.js from an ASP.NET MVC project
one
Deploy angular2 universal on a Windows server
0
Angular 5 server rendered app from Angular Universal to App Engine

All Articles