Read the related article series (includes video of a live presentation): Get started with Angular on .NET Core 2.1.
These code examples demonstrate various ways Angular integrates with .NET Core. Read the full documentation for the .NET Core Angular template.
This is a statically generated Angular site that can be statically hosted as part of any web server. As a demo, I used the new static website hosting in Azure blob storage.
Run:
ng serve --open
Build to deploy:
ng build --prod
This is a .NET Core Web API project that serves a REST endpoint for computing iterations of the bifurcation equation:
f(x)=r*x*(1.0-x)
It is used with the static web example to draw a bifurcation diagram.
This is an alternate endpoint for the bifurcation API using serverless Azure Functions. Open in Visual Studio or Visual Studio Code to run using the cross-platform functions host.
This app is self-contained Angular and .NET Core in the same solution. It is also easy to deploy directly to Azure App Service or containerize and deploy to Azure App Service for Linux.
The same as ng-hosted
but with server-side rendering turned on so the initial render is delivered without waiting for the client. The easiest way to see this in action is to set a breakpoint at the top of main.ts
to see the server platform before it is overwritten by the client refresh.