I have to write some code for IE8. I have an ng-repeat creating a table filled with:
not directive but I use just:
controller:
$scope.blockNonNumber = function (val, field){ $scope[field] = val.toString().replace(/[^0-9]/g, ''); }
html:
it's not directive but can be used in directive as wellside