Single Page Apps

.NET SPA Templates

.NET default templates for dotnet new 1
dotnet new angular -f net7.0 --auth Individual --use-local-db --kestrelHttp(s)Port
Templates: ASP.NET Core with Angular
Short name: angular
Tags: Web/MVC/SPA
Discontinued since 8.0

Overview of Single Page Apps (SPAs) in ASP.NET Core 8 2
Overview of SPAs in ASP.NET Core 7 3

ASP.NET Core with Angular

Use the Angular project template with ASP.NET Core 4
Use the Visual Studio project type for JavaScript and TypeScript (.esproj) for the frontend
JavaScript Project System (JSPS)
dotnet run --launch-profile https

Tutorial: create an ASP.NET Core app with Angular in Visual Studio 5
Angular and ASP.NET Core
ASP.NET Core API project + Angular CLI running ng start
MSBuild reference for the JavaScript Project System 6
ShouldRunNpmInstall + ShouldRunBuildScript

Create an Angular project 7
npm + Angular CLI, Angular App
Template name was changed from Standalone TypeScript Angular Project to Angular App

TypeScript Integration

JavaScript and TypeScript in Visual Studio 8
Microsoft.TypeScript.MSBuild 5.8.3 MSBuild task 9
Compile TypeScript code (ASP.NET Core) 10
tsconfig.json TypeScript JSON Configuration File
Compile TypeScript code using npm 11

Vite

Vite 12 is a blazing fast frontend build tool powering the next generation of web applications.

< «