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

Does "getStatesChain" consider state parameters to add a state to the state chain? #167

Open shirodkarsohan opened 7 years ago

shirodkarsohan commented 7 years ago

I have a UI-router state that takes route parameters.

.state('browse.category', {
  url: '/category/:categoryName/:catID',
  views: {
     'categories': {
        templateUrl: "modules/trulo/client/views/browse.categories.html",
        controller: "CategoriesController"
      }
  }
}

If I navigate from this state(say browse.category({param1})) to the same state with different state parameters(say browse.category({param2})) , the previous state i.e. browse.category({param1}) is not added to the state chain.

This is evident on printing out the result of $breadcrumb.getStatesChain().

Is there any way to enable it to store the previous same state with different state parameters?