In this fiddle I'm attempting to fire an alert within a <tr> element when the item is clicked :
http://jsfiddle.net/q8r4e/503/
Code :
<tr ng-controller="MyController" ng-click="alert()">alert
</tr>
function MyController($scope) {
$scope.alert = function() {
alert('here');
};
}
But nothing is being fired. Is this possible within angular? The reason I'm attempting to use with <tr> is that I'm attempting to introduce AngularJS indo code base and im starting with listeners within a table.