angular icon indicating copy to clipboard operation
angular copied to clipboard

Read router params in the title property using string interpolation

Open MonaGamal opened this issue 3 years ago • 0 comments

Description

Is it possible to just read the params of the router with string interpolation without making a resolver or injecting the Title?

Proposed solution

{
    path: ':productId',
    component: ProductComponent,
    title: `Product details: ${:productId}`
  }

Alternatives considered

Or any other better solution?

MonaGamal avatar Nov 23 '22 17:11 MonaGamal