Due to the structure of the website's url, the parameters will vary, making it impossible to set a fixed number of parameters. How can we modify the app-routing.module.ts file to accommodate this?
url => /products/cat1/cat2/cat3/cat4 ...
const routes: Routes = [
{
path: 'products/:cat1/:cat2 ...', // What is the best approach??
component: ProductsComponent,
}
]