...
/Adding a Component to the Razor Class Library
Adding a Component to the Razor Class Library
Learn how to add the Dialog component in the Razor class library and how to use it in the ModalDialog app.
We'll cover the following...
In order to share the Dialog
component, we need to move it to the Razor class library that we just created and tested. We do this as follows:
-
Right-click the
ModalDialog\Shared\Dialog.razor
file and select the “Copy” option from the menu. -
Right-click the
MyComponents
project and select the “Paste” option ...