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
Nicholas westby
source share