This example demonstrates how to create custom elements from Blazor Razor components and integrate them into JavaScript SPA frameworks such as Angular.
- .NET 7.0 or later
- Visual Studio tool with installed "ASP.NET and web development"
- Angular 15+
- Open the BlazorServerApp(.sln or .csproj) file from
BlazorServerApp\location. - Run the application (or press
ctrl+ F5).
cd BlazorServerApp
dotnet run
Leave that Blazor Server app running.
cd angular-app
npm install
npm start
Now browse to http://localhost:4200/, the Angular application dynamically renders the Blazor Server components.
