TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 434 forks source link

VS 2017 Angular template #648

Open artyom-p opened 6 years ago

artyom-p commented 6 years ago

Hi, could you explain please, how this project is different from the template provided by the latest visual studio? The only differences that I've discovered are newest angular version and PWA support. Are there any advantages using this template instead?

For the first look, it looks mjch more complex than vs template

GRIMMR3AP3R commented 6 years ago

There are many things that are different. Most notably, as the title of this repo suggests, this repo is a SSR template and the Angular template in Visual Studio is a SPA. You are correct that this template is more complex but it offers far better features such as SEO and server driven business logic that is passed to the client. Summed up, this is a thin client template and Visual Studio template is a thick client.

pjmagee commented 6 years ago

The microsoft dotnet core offical angular template does now include a way to enable SSR

CybrZr00 commented 6 years ago

The vs2017 angular template is inefficient at best when using ssr. I gave it a look, and if you try to publish, the whole node_modules folder is published, which then causes issues with file name length due to some files having their md5 / sha hashes in their file / directory names. Those templates never have been production ready, not if you want ssr, it's far better to use this template and strip it out if you want bare bones. When @MarkPieszak and co fully integrate angular-cli things will only get better!!