Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
It is common for a component to be placed in a feature folder and named Index.razor
. So for example, Feature/Index.razor
rather than Feature/Feature.razor
.
However the consuming component must reference it like so:
<ProjectName.Pages.Foo.Bar.Baz.Feature.Index />
That is very inconvenient and ugly. It would be better if we could use partially-qualfied names, especially since the consuming component is typically in an immediate parent folder. So:
<Feature.Index />
The docs state this isn't possible:
The following are not supported:
- Partially-qualified names. For example, you can't add @using BlazorSample to a component and then reference the NavMenu component in the app's Shared folder (Shared/NavMenu.razor) with <Shared.NavMenu></Shared.NavMenu>.
Describe the solution you'd like
Please support this common naming convention? It works in all other parts of the framework, so lack of support was quite surprising and took a long time to debug.
Additional context
No response
Activity