Q:

ng-click or ng-href in table row repeat doesn't work

this is the code in the html page:
<tr ng-repeat="res in result" ng-click='go()'>

    <td>{{res.value1}}</td>
    <td>{{res.value2}}</td>
    <td>{{res.value3}}</td>
    <td>{{res.value4}}</td>
    <td>{{res.value5}}</td>
    <td>{{res.value6}}</td>

</tr>

and this is the code in .js file:
$scope.go = function () {
    $scope.go = function (url) {
        $location.path(url);
    }
}

my principal problem is that i need to use the entire row like a link, something like this
<tr ng-repeat="bla bla bla" href="url">

but neither ng-href or the ng-click works, what am i doing wrong?
ok, i have forget the parenthesis, but the principal problem still remain, is it possible to use href with the tr? and if the answer is yes, how?
i have edit the code to precise what my really problem is, if i use the ng-click like an href i can't use a code like that
go('/something/{{res.value1}}

my goal is to pass an url that change in base at the row that i click.

A:

You forgot the ()
ng-click="go()"

