Examples on how to use Blazor JavaScript Interop. You can read my Blog Post for a more in depth step by step on how to re-create this project.
Start by completing the Getting started instruction on the *Blazor Getting Started.
Once you set up Blazor on your machine, clone the repo and open the solution in Visual Studio 2019 Preview. Then run the Application in Debug mode and watch JavaScript Interop in action.
Application covers
- Call JavaScript function from .Net
- Call JavaScript function from .Net with arguments and element reference
- Call C# .Net method from JavaScript
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.