Category: Blazor

  • BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–code

    BlazorExtensionsAspire solves the problem of automatically injecting the URL of WebAPI into Blazor WebAssembly . The code for obtaining writes into appsettings.json of BlazorWebAssembly To use it add this to a Aspire AppHost project and then add this to a BlazorWebAssembly project and then inject Do not forget to add CORS to webAPI !

  • BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–idea

    Any WebAPI application needs an UI – and Blazor is a choice nowadays ( along other SPA , like Angular, React, Svelte … ) For integrating in ASPIRE ,there is a no simple task : Blazor should know the WebAPI url and use it to gather data. But the WebAPI URL could change  – so…

  • Poor man display errors–part 3–Display

    In part 2 I have exposed the errors via the API to the world. Now I should show in a Blazor/ Razor page . It is enough to read with an HTTP call and display data. Display data in a table Because – the API that gives error can change,however it will be an array…

  • Blazor and RowNumber in Grid

    The data that comes from the backend does not,usually,provide a row number . So how to obtain this ? Create a class,will say any programmer … And the usage And the grid:

  • Aspire Blazor WebAssembly and WebAPI

      Aspire is the new visualizer – see https://github.com/dotnet/aspire I am very fond of WebAPI  –  it allows for all people to see the functionality of a site,in a programmatic way ( side note:,my nuget package,https://www.nuget.org/packages/NetCore2Blockly,allows to make workflows from your WebAPI) And Blazor WebAssembly is a nice addition that the WebAPI . I am…

  • Deploy Blazor WASM to Github Pages in 7 steps

    Assumptions: You have an Blazor Interactive WebAssembly ( CSR ),not a Server ( static or interactive) I will make as the repo is  https://github.com/ignatandrei/tilt  . Change my name with yours and TILT  with your repo So let’s start Step 1   You must configure GitHub Pages – create a docs folder and put an index.html  .…