<tbody>
<tr ng-repeat="message in messages" ng-click="go('pair/{{message.currencyFrom}}/{{message.currencyTo}}')">
<td>{{ message.currencyFrom }}/{{ message.currencyTo }}</td>
<td>{{ message.amountSell }}</td>
<td>{{ message.amountBuy }}</td>
<td>{{ message.rate }}</td>
</tr>
</tbody>
The dom view in chrome's inspect, shows ng-click="go('pair/EUR/GBP')"
however when clicked I end up at pair/%7B%7Bmessage.currencyFrom%7D%7D/%7B%7Bmessage.currencyTo%7D%7D
It seems the the url is passed as raw angular vars.
I've tried adding the code inside the loop but the same behaviour is exhibited.
I've tried initiating a variable first and passing it to the go
function:
ng-init="var url = 'pair/{{message.currencyFrom}}/{{message.currencyTo}}'"
I can't imagine it's relevant but here is go:
$scope.go = function ( path ) {
$location.path( path );
};