Currently, I am facing an issue with AngularJS version 1.0.1. After creating an app and testing it in IE8 compatibility mode as well as IE7, I noticed that ng-change and ng-click are not responding. I have not tested other event handlers yet, but these two are causing problems for me. Interestingly, all other browsers are working perfectly fine. Can anyone provide assistance or guidance on this matter? Is there a specific workaround for IE7/8?
Below is the code snippet of the controller:
CalculatorCtrl = function($scope) {
$scope.btw = 1;
$scope.input = 0.00;
$scope.output = 0.00;
$scope.getBedrag = function() {
var input = $scope.input;
var btw = $scope.btw;
var output = 0.0;
if(input != 0) {
input = parseFloat(input.replace (",", "."));
var tmp = input+"";
$scope.input = tmp.replace(".", ",");
}
if($scope.isNumber(input)) {
output = $scope.calculateBedrag(input);
if(btw == 1) output = output * 1.19;
$scope.output = output.toFixed(2).replace('.', ',');
} else {
//alert('Voer een bedrag in a.u.b.');
$scope.input = 0;
$scope.output = 0;
}
}
}
In the HTML, I have used the following elements:
<input autocomplete="off" ng-model="input" class="x-width" type="text" name="bedrag" value="" ng-change="getBedrag()" />
<input class="x-width" disabled="disabled" type="text" name="bedrag" value="{{output}}" />
I am hopeful that someone can assist me with this issue :)
Edit: I also tried using IE Tester in IE7 mode, but encountered the same issue. Unfortunately, I do not have access to a machine with a genuine IE7 browser installed, so I am unable to perform tests on that environment...