I have encountered an issue with this HTML tag. It appears correctly when I use the Inspect Element
tool:
<tr style="cursor: pointer" ng-repeat="i in games" ng-click="go('/admin/{{i._id}}')">
However, when it is rendered on the page, it looks like this:
<tr style="cursor: pointer" ng-repeat="i in games" ng-click="go('/admin/5550d868c5242fb3299a2604')" class="ng-scope">
In my JavaScript code, I have the following function:
$scope.go = function(path){
$location.path(path);
};
Upon clicking the row, it should navigate to this path:
/admin/5550d868c5242fb3299a2604
Instead, it redirects to:
/admin/%7B%7Bi._id%7D%7D
Which actually evaluates to: {{i._id}}
What mistake am I making here?