I have an application with two states:
I have a link that repeats throughout my application:
<a ui-sref="profile({id:profile.id})" ui-sref-active="active">Current state + ID</a>
How to change ui-srefas dynamic? - represent the current state along with the current stateParam state that I want (what id)
when searching for a solution, keep in mind that I want to be able to use ui-sref-active, so it is better to avoid ng-click on something like this.
source
share