The example below is extremely simple (edited after sp00m correct for the previous example response):
index.html: (part)
<table>
<tr ng-repeat="r in [1,2,3]">
<td ng-repeat="c in [1,2]" ng-mouseenter="name='John'">
[{{r}},{{c}}]
</td>
</tr>
</table>
Hello {{name}}!
app.js:
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
I am expecting the 'World' word being changed to 'John' being shown but nothing occurs when I am mousing over the cell.
I am posting plnkr below to show the problem.
What am I doing wrong?! What am I missing?
Is the problem with AngularJS 1.5.x plnkr is using that does not handle ng-mouseenter
in <td>
? Note that ng-repeat is not an issue - when I put manually new row this will not work either.