rajaramtt / ng7-dynamic-breadcrumb

Angular 10 Dynamic Breadcrumbs
MIT License
42 stars 31 forks source link

[Feature] set dynamicText by queryParams/public property #3

Closed b4p3p closed 3 years ago

b4p3p commented 5 years ago

1) can you set dynamicText by queryParams?

Ex:

this.router.navigate(['/products', 10], { queryParams: { productName: 'My product name' } });

will be 'My product name' in breadcrumb

2) can you set dynamicText by public property?

Ex:

breadcrumb: [
   { label: '{{CustomText}}',  url: '' }
]

and in component

export class MyComponent {
   ....
   public get CustomText(){
      return this.blabla.CustomProperty
   }
   ....
}
rajaramtt commented 5 years ago

Yes. I'll try to implement the next release!.

rajaramtt commented 3 years ago

Out of the scope, No longer supported by the author this future, If anyone interested, Please submit PR