-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The Please ellaborate if you mean something else |
Beta Was this translation helpful? Give feedback.
-
Within your module client project you simply need to organize your various components by folder ( exactly the same way that the Oqtane.Client project is organized ): /YourModule.Client Use the namespace directive in your components if you want to be explicit about naming ( otherwise Blazor will generate a default namespace ): @namespace YourModule.ModuleName1 @namespace YourModule.ModuleName2 Each folder containing an Index.razor will be treated as a module that can be added to a page using the Control Panel. All components in your client project can share the same APIs and Models from the other projects in your solution. |
Beta Was this translation helpful? Give feedback.
Within your module client project you simply need to organize your various components by folder ( exactly the same way that the Oqtane.Client project is organized ):
/YourModule.Client
../ModuleName1
....Index.razor
....Edit.razor
../ModuleName2
....Index.razor
Use the namespace directive in your components if you want to be explicit about naming ( otherwise Blazor will generate a default namespace ):
@namespace YourModule.ModuleName1
@inherits ModuleBase
@namespace YourModule.ModuleName2
@inherits ModuleBase
Each folder containing an Index.razor will be treated as a module that can be added to a page using the Control Panel. All components in your client project can share the same APIs a…