I am encountering an issue with the dynamic changing of ui-sref. I have updated the ui-sref attribute, but when I click on the link with the modified ui-sref, it still redirects me to the old state that was initially defined.
It seems like the data is bound at initialization and even after changing the ui-sref attribute, nothing happens.
<a href="" ui-sref="{{navigatorNames.previous.stateName}}" >{{navigatorNames.previous.title}}</a> |
<a href="" ui-sref="{{navigatorNames.current.stateName}}">{{navigatorNames.current.title}}</a> |
<a href="" ui-sref="{{navigatorNames.next.stateName}}" >{{navigatorNames.next.title}}</a>
Full code can be found here.