Summary of Using Templated Components
Let's summarize the concepts we learned in the “Building a Modal Dialog Using Templated Component” chapter.
We'll cover the following
Wrap up!
We should now be able to create a modal dialog and share it with multiple projects by using a Razor class library.
In this chapter, we introduced RenderFragment
parameters, EventCallback
parameters, and CSS isolation.
We added a Dialog
component that acts like a modal dialog. The Dialog
component uses both RenderFragment
parameters and EventCallback
parameters to share information between it and its parent. Also, it used CSS isolation for its styles.
In the last part of the chapter, we created a Razor custom library and moved the Dialog
component to the new library.
Get hands-on with 1400+ tech skills courses.