Tag

Blazor

Browsing articles related to Blazor.

69 articles
5 Current page
(24/30) Let's Learn Blazor Together: Using <AuthorizeRouteView>

(24/30) Let's Learn Blazor Together: Using <AuthorizeRouteView>

The day before yesterday, we added content in `Blog.razor` to display both authorized and unauthorized views. However, if the unauthorized content to be displayed is the same across the system, writing it in every component would be a waste of time. We can use `App.razor` to handle unified presentation.

StrayaWorker 12/23/2021 10:51 PM
(20/30) Let's Learn Blazor Together: Logging

(20/30) Let's Learn Blazor Together: Logging

When developing a system, logging is very important. It hasn't been mentioned before; the author only recently thought of it, so let's implement it!

StrayaWorker 12/21/2021 11:36 PM
(16/30)Learning Blazor Together: Creating a Database

(16/30)Learning Blazor Together: Creating a Database

We now have basic logs, but every time we finish inputting and reload the page, the data is reset because these data only exist in the browser and are not actually stored in the database. To save them, we need to connect to the database.

StrayaWorker 12/18/2021 11:34 PM
(15/30)Learning Blazor Together: CSS Isolation

(15/30)Learning Blazor Together: CSS Isolation

Sometimes we want to apply individual styles to different components. But if we write all CSS classes in `wwwroot/css/site.css`, or modify styles for a specific element, it may cause a change to affect all components. This kind of global conflict must be avoided, but how should we do it?

StrayaWorker 12/18/2021 10:35 PM