Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore routing via decorators #13

Open
DominikHorn opened this issue Feb 26, 2020 · 0 comments · Fixed by #19
Open

Explore routing via decorators #13

DominikHorn opened this issue Feb 26, 2020 · 0 comments · Fixed by #19
Assignees
Labels
enhancement Enhancement of existing code/features

Comments

@DominikHorn
Copy link
Contributor

Instead of manually declaring routes in a separate file, decorate the main page component:

https://www.typescriptlang.org/docs/handbook/decorators.html

Credit for the idea to @schmitob

@DominikHorn DominikHorn added the enhancement Enhancement of existing code/features label Feb 26, 2020
@DominikHorn DominikHorn self-assigned this Feb 26, 2020
DominikHorn added a commit that referenced this issue Feb 27, 2020
* avoid having to forcefully require components
* avoid namespace/path collisions more elegantly
* make ordering pages (regarding navbar) easily feasable
@DominikHorn DominikHorn linked a pull request Feb 27, 2020 that will close this issue
@DominikHorn DominikHorn changed the title Try to implement routing via Decorators Explore routing via decorators Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing code/features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant