K
K
Konstantin2020-04-22 22:14:44
Angular
Konstantin, 2020-04-22 22:14:44

Why am I not getting the first parameter from the routing?

{
        path: "order",
        component: OrderDefinitionCrudComponent,
        children: [
          {
            path: ":entity/:action",
            component: OrderDefinitionEditorComponent,
          },
        ],
      },


Why is the first parameter :entry not coming:

this.route.paramMap.subscribe((params) => {
      this.entity = params.get("entity");
      this.action = params.get("action");
});


The URL is:
localhost:4200/order/edit/1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2020-04-23
@Junart1

do order/:entity/:action

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question