Calling JavaScript from C# in Blazor WebAssembly (and vice versa) [Blazor JavaScript Interop]

Опубликовано: 02 Октябрь 2024
на канале: DotNet Core Central
4,133
60

In my last three videos, I have walked through different aspects of Blazor WebAssembly implementation. In my opinion, Blazor is a very good alternative to existing Single Page Application frameworks like Angular.

In this video, I am going to cover the JavaScript Interop aspects of Blazor WebAssembly.

In this video I am going to cover two main aspects of JavaScript interop in Blazor WebAssembly:
1. Calling JavaScript functions from C# code inside of Blazor WebAssembly
2. Calling C# methods inside of Blazor WebAssembly from JavaScript code

Links to my previous videos on Blazor are here:
1. Blazor Introduction:    • An introduction to Blazor in .NET 5.0  
2. Debbuging and Dependency Injection in Blazor WebAssembly:    • Debugging and Dependency Injection fo...  
3. Unit testing of Blazor WebAssembly applications using bUnit and NUnit:    • Blazor WebAssembly Unit Testing with ...  

The source code for this series is available in my GitHub repo here: https://github.com/choudhurynirjhar/b...

My blog website is here: https://dotnetcorecentral.com/blog/bl...