Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Rendering routes with 2 or more route parameters with AnalogJS?

I have routes of that are defined like this:

  {
    path: ':category/:topic',
    component: TopicComponent,
    data: ROUTE_DATA,
    resolve: { topic: topicResolver },
    canActivate: [topicGuard]
  },

The AnalogJS documentation explains how to render routes container a single parameter..

So for a single productid parameter we would define a file like this:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

products.[productId].page.ts

How do we define routes with 2 or more parameters?

Pseudo code would be something like this:

products.[productId]/[partid].page.ts

Thoughts?

>Solution :

You got to use the dot notation to divide path segments, like this products.[productId].[partid].page.ts.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading