When utilizing the AngularJD ui-router
, I have set up a state called myState
with three parameters: stateParam1
, stateParam2
, and stateParam3
.
In my scenario, I have already defined variables var1
and var2
. I successfully pass them as stateParam1
and stateParam2
respectively. However, for stateParam3
, I aim to combine the values of the first two variables. How can I concatenate var1
and var2
into a new variable to be sent as stateParam3
?
<a ui-sref="myState({'stateParam1': var1, 'stateParam2': var2, 'stateParam3': WHAT_GOES_HERE? })">