Understanding Parameters Parameters in Blazor are used to pass data from a parent component to a child component. They are defined using public properties on a component and decorated with the [Parameter] attribute. Non-Complex Objects Non-complex objects such as integers, strings, and booleans can be passed as parameters. Here’s an example: In this example, the…
Tag: dotnet
Safely store secrets during development
When developing an application, we sometimes need to call an api or connect to a database and for this, we use passwords or keys to connect. If we put them in the appsettings, there’s always the danger of forgetting about them and commit them to source control which can then cause a security flaw. To…
How to blazorify an existing mvc app
Blazor is awesome. If you don’t know what it is, you can check it out here but to summarize, it’s a framework that allows .net code to run in your browser using the power of Web Assembly. I’ve found a lot of tutorials using the official blazor templates but only hints on how exactly using Blazor…