Configuring angular universal with Asp.NET Core

Viewed 525

After reading the microsoft docs (https://docs.microsoft.com/fr-fr/aspnet/core/client-side/spa/angular?view=aspnetcore-2.2&tabs=visual-studio), i have seen that we use the Startup.cs file to call the app.UseSpa() and do some configuration.

On the other hand, while reading the starter project from Mark Pieszak's github repository (https://github.com/MarkPieszak/aspnetcore-angular-universal), I saw no such method call in the startup.cs file, the configuration was rather on the Home controller and the views files.

What is the difference between the two approaches in terms of pros & cons, or simply when to use one or the other?

0 Answers
Related