Here is the code, very simple: http://jsfiddle.net/nyXPc/
HTML:
<div ng-app="" ng-controller="Ctrl">
<button ng-click='createNewUser()'>Create</button>
<input ng-model='user.A'>
<input ng-model='user.B'>
<input ng-model='user.C'>
<input ng-model='user.D'>
<input ng-model='user.E'>
</div>
JS:
function Ctrl($scope){
$scope.user = {};
$scope.createNewUser = function(){
$scope.user = {};
}
}
I have 5 inputs with ng-model, under IE 11 on Windows 8.1, the browser crashes.
Steps:
- Type anything in the five inputs.
- Click 'Create'. The inputs should be empty.
- Type again in each input. On my computer, the browser crashes.
But if I removed one input and left 4 of them, the browser won't crash.
Any idea?
=================================
Update:New findings
If I give some initial values when create the object, the browser won't crash
$scope.user = {A: '1', B: '2', C: '3', D: '4', E: '5'};
If I give some empty values, after click the Create button a few times (about 5 to 20 times), the browser crashes.
$scope.user = {A: '', B: '', C: '', D: '', E: ''};