I have searched for a similar question but the ones that came up seem slightly different.
I am trying to change the ui-sref=\'\' of a link dynamically (this link points to t
If someone only wants to dynamically set the $stateParams of ui-sref in Angularjs.
Note: In inspect element it will still appear as "buy({myPairIndex:$index})" but $index will be fetched in that state.