fix($breadcrumb): use $stateParams in case of unhierarchical states. #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @ncuillery,
Thanks for your hard working. You have done a great job here.
I added one bug fix for parent URL. Here is my case:
Imagine that I have 3 states, look like these:
communities
=>http://localhost
communities-list
=>http://localhost/cute-girls
orhttp://localhost/cute-boys
...communities-detail
=>http://localhost/cute-girls/01
...Because
communities-list
state need a param:community
, so that when I am inapp-communities-detail
state (for example:http://localhost/cute-girls/01
), I can not go back to previous state which ishttp://localhost/cute-girls
.Checkout my PR. I fixed that by adding
$stateParams
when you buildncyBreadcrumbLink
.Thanks!