In the demo as well as my own code I notice that the spacing between crumbs in the breadcrumb trail is not uniform.

Notice that there is more space after the "/" than before it.
This seems to be caused by the template for the directive and (perhaps) the fact that Angular inserts comments into the DOM (comments around ng-repeat's, ng-if's, etc.).
The template for the breadcrumb trail inserts line breaks between the <li> and <a> tags that make up each breadcrumb element. It looks like this line break is part of the problem.
I can mitigate the issue somewhat by changing the template to remove those line breaks:
Modified template:
`
- {{ crumb.displayName }} {{ crumb.displayName }}
`
(NOTE: the above may not make the changes that I've made very noticeable. But the only line breaks in this template are after the opening <ol> tag AND before the closing </ol> tag.)
Also, note that I've inserted an after the displayName. That seems to even out the spacing. I think this is necessary to mitigate the effects of Angular adding comments to the DOM. In doing so, Angular seems to be inserting line breaks between the elements in the directive template.
I'm not sure how to best solve this. Note that if you look at the breadcrumb example on the Bootstrap site, that they do not insert line breaks in between the <li> and <a> tags. And if you do insert them that, you start to see the uneven spacing.
I think the template I pasted above is an OK solution, but I don't like that we have to stray from the Bootstrap example (by inserting the . Wondering if you have any thoughts about how to make the spacing between crumbs more uniform.
In the demo as well as my own code I notice that the spacing between crumbs in the breadcrumb trail is not uniform.
Notice that there is more space after the "/" than before it.
This seems to be caused by the template for the directive and (perhaps) the fact that Angular inserts comments into the DOM (comments around ng-repeat's, ng-if's, etc.).
The template for the breadcrumb trail inserts line breaks between the
<li>and<a>tags that make up each breadcrumb element. It looks like this line break is part of the problem.I can mitigate the issue somewhat by changing the template to remove those line breaks:
Modified template:
`
- {{ crumb.displayName }} {{ crumb.displayName }}
`(NOTE: the above may not make the changes that I've made very noticeable. But the only line breaks in this template are after the opening
<ol>tag AND before the closing</ol>tag.)Also, note that I've inserted an
after the displayName. That seems to even out the spacing. I think this is necessary to mitigate the effects of Angular adding comments to the DOM. In doing so, Angular seems to be inserting line breaks between the elements in the directive template.I'm not sure how to best solve this. Note that if you look at the breadcrumb example on the Bootstrap site, that they do not insert line breaks in between the
<li>and<a>tags. And if you do insert them that, you start to see the uneven spacing.I think the template I pasted above is an OK solution, but I don't like that we have to stray from the Bootstrap example (by inserting the
. Wondering if you have any thoughts about how to make the spacing between crumbs more uniform.