Closed 4miners closed 7 years ago
There is library https://github.com/ncuillery/angular-breadcrumb which is good, easy for use and doesn't have issues https://github.com/LiskHQ/lisk-explorer/issues/121 https://github.com/LiskHQ/lisk-explorer/issues/127, but unfortunately doesn't support feature described here - so using custom solution probably is still the way to go.
I don't understand the situation, if you're updating the breadcrumb using $stateParams
why do you need to do it in an async function?
@alihaghighatkhah Updating using data from $stateParams
was just example, I want to update using data retriewed from async function. For example - I have page /delegate/<delegate_name>
but need breadcrumbs Home / Address / Delegate
. So I need to get address via async function and set breadcrumbs.
Current behavior: It's not possible to set breadcrumbs from async function in controller.
Expected behavior: Should be possible to update breadcrumbs (current and parents) from async function in controller, for example:
Steps to reproduce: Change
controllers/delegates.js
to: