Skip to content

More .razor pages per module (in same client project) #1035

Answered by sbwalker
artmedia asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@artmedia
Comment options

@hishamco
Comment options

@artmedia
Comment options

@hishamco
Comment options

Comment options

You must be logged in to vote
1 reply
@artmedia
Comment options

Answer selected by sbwalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants