Skip to content

Add support for @layout null in blazor #8340

@MarvinKlein1508

Description

@MarvinKlein1508

Is your feature request related to a problem? Please describe.

Sometimes you need no layout within a blazor app for some pages, e.g. for a print preview.
Adding @layout null to the component results in not compilable code.

This StackOverflow post does the trick but it should work by default just like in razor pages.
https://stackoverflow.com/questions/59518988/disable-layout-for-page-under-blazor

Metadata

Metadata

Labels

area-compilerUmbrella for all compiler issuesfeature requestLarge improvement request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions