Closed nitishjain07 closed 5 years ago
In this case I think we should prefer item.template
to make it explicit, but otherwise agreed! This is definitely something we should support
:tada: This issue has been resolved in version 3.13.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi Team,
We have two ways to create breadcrumbs using carbon breadcrumb component:
In our project, we want both threshold and custom template support.
Probable Solution- As per my finding carbon team will have to fix it in the below code in component in both showforoverflow if conditions:
Existing code is: <ibm-breadcrumb-item *ngFor="let item of items" [href]="item.href"> {{item.content}}
changes needed: You first need to check instance of item.content. If it is string then you can render as it is. However, if it is templateRef, you need to render it inside ng-container templateOutlet. So, user will be able to send custom template in content property. (something similar is already implemented in tooltip component)
(I am using below version of carbon: "carbon-components": "^10.2.0", "carbon-components-angular": "^3.7.0".)
@zvonimirfras