ncuillery / angular-breadcrumb

Generate a breadcrumb from ui-router's states
http://ncuillery.github.io/angular-breadcrumb/
MIT License
785 stars 183 forks source link

parent tag not working for params in state #157

Open maxhan247 opened 8 years ago

maxhan247 commented 8 years ago

http://plnkr.co/U8rrmORZiS7xyLBM5wtp

In my plnkr, the "home", "element" and "detail" are parallel states, and I build parent-child relationship use parent tag. The requirement is the URL shouldn't show any id, so I send the id by params: {idElement: null}.

But the parent tag seems not work in this case. When I go to detail, I lose params in parent state.

breadcrumb

mateatslc commented 7 years ago

ui-sref style dynamic links seem to be broken currently, not sure if there is anything in the works to fix them... I came up with a workaround where I default state params using the $stateParams service. I forked your plunker to demonstrate the fix: http://plnkr.co/edit/8yQlDN8suimQAn0DWmuF?p=preview

nmarcetic commented 7 years ago

@mateatslc Not working on page refresh.