analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.57k stars 245 forks source link

feature: top level layout support #632

Closed besimgurbuz closed 1 year ago

besimgurbuz commented 1 year ago

Which scope/s are relevant/related to the feature request?

router

Information

I think having a top level layout that stays on every page would be great. If it's supported by analogjs I couldn't find it from the documents. Same idea in SvelteKit is +layout.svelte file in src/routes destination.

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

brandonroberts commented 1 year ago

Thanks @besimgurbuz. How is this different than wrapping the router-outlet in the AppComponent with a layout?

besimgurbuz commented 1 year ago

None. I totally forgot the AppComponent while experimenting routes. Sorry for inconvenience.