你的位置: 码友网首页 / 资讯源列表 / Partial Classes, RenderFragment and Lifecycle in Blazor WebAssembly

关于[Partial Classes, RenderFragment and Lifecycle in Blazor WebAssembly]的摘要:

As we saw in the previous article, the .razor file consists of an HTML and C# code in the same file. But if we want, we can split this file into two files, one for the HTML logic and another one for the C# logic. So, in this article, we are going to learn how to use Partial Classes to split the .razor file, and additionally, we are going to talk about using the RenderFragment parameters to send content to the component. Finally, we have to mention the lifecycle in the Blazor WebAssembly applications. That said, we are going to explain different lifecycle methods we can use while developing a Blazor application.

原文地址: https://code-maze.com/partial-classes-renderfragment-lifecycle-blazor-wasm/

收录时间: 2020-06-23 浏览量: 2366 分类: Blazor

| 0 收藏 | 0