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

Properly escape nested route parameters #275

Open
Den-dp opened this issue Nov 9, 2022 · 0 comments
Open

Properly escape nested route parameters #275

Den-dp opened this issue Nov 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Den-dp
Copy link

Den-dp commented Nov 9, 2022

Description of the problem

Nested route params cause the following issue:

import { TypedRoute } from '@routerkit/core';
export type TypedRoutes = {
    [company: string]: {
        :project: TypedRoute<[  //<-- syntax error here
            '/',
            string,
            string
        ]>;
    };
};

Steps To Reproduce

Add the following route and run ng g @routerkit/core:parse --project APP_NAME

const routes: Routes = [
  { path: ':company/:project', component: SomeComponent },
];

Versions:

  • Angular: 14.2.9
  • RouterKit: 0.10.0
@Den-dp Den-dp added the bug Something isn't working label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant