I have an app with 2 states:
profile
settings
I have a link that repeats in my whole app:
<a ui-sref="profile({id:profile.id})" ui-sref-active="active">Current state + ID</a>
How can I change the ui-sref
to be dynamic? - to represent the current state along with the current stateParam that I want (which is id
)
when finding a solution, keep in mind that I want to be abble to use ui-sref-active
so I'd rather avoid ng-click on something like this.