Skip to content

This example demonstrates how to create custom elements from Blazor Razor components and integrate them into JavaScript SPA frameworks such as Angular.

Notifications You must be signed in to change notification settings

SyncfusionExamples/Integrate-Blazor-component-as-Custom-elements-in-JavaScript-SPA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Integrate Syncfusion's Blazor Components into Any SPA Framework as Custom Elements

This example demonstrates how to create custom elements from Blazor Razor components and integrate them into JavaScript SPA frameworks such as Angular.

Prerequisites

Run the Blazor Server application

Using Visual Studio

  • Open the BlazorServerApp(.sln or .csproj) file from BlazorServerApp\ location.
  • Run the application (or press ctrl+ F5).

Using command prompt

cd BlazorServerApp
dotnet run

Leave that Blazor Server app running.

Run the Angular application

cd angular-app
npm install
npm start

Now browse to http://localhost:4200/, the Angular application dynamically renders the Blazor Server components.

Custom-Element-Output

Reference

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-7.0#blazor-custom-elements

About

This example demonstrates how to create custom elements from Blazor Razor components and integrate them into JavaScript SPA frameworks such as Angular.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6