Перейти к содержимому

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

DotNet Core Central

0:00 / 0:00

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

4 340 просмотров · 5 лет назад
DotNet Core Central
29 тыс. подписчиков
4 340 просмотров · 5 лет назад
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 for Bla...   3. Unit testing of Blazor WebAssembly applications using bUnit and NUnit:    • Blazor WebAssembly Unit Testing with bUnit...   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...