Best of BlazorAugust 2024

  1. 1
    Article
    Avatar of telerikTelerik·2y

    Blazor Basics: Calling .NET from JavaScript

    Learn how to call .NET methods from JavaScript in Blazor applications, both Blazor Server and Blazor WebAssembly. The post demonstrates the process through the implementation of a simple chat application where messages are managed via JavaScript and integrated into a Blazor component. Key topics covered include the use of the IJSRuntime interface, JSInvokable attribute, and implementing the Dispose method for efficient resource management.

  2. 2
    Article
    Avatar of telerikTelerik·2y

    Blazor Basics: Blazor JavaScript Interop—Calling JavaScript from .NET

    Learn how to integrate JavaScript code and libraries into a Blazor web application using ASP.NET Core Blazor JavaScript interoperability. The post demonstrates various levels of JavaScript integration into Blazor, explaining how to call JavaScript functions from .NET code and use their return values. It also covers the integration of a JavaScript library like Chart.js to create dynamic charts within Blazor applications, providing code examples and best practices for seamless integration and debugging.