I have an object that has 2 fields, while 1 should be less than or equal to another.
Say it\'s HDD quota settings and I need the threshold
to be less th
Better late than never, you need to add ng-model-options="{allowInvalid:true}"
to your form input elements to stop this happening - the problem is that when a promise is rejected (e.g. using $q
or $http
) the model, by default, is not updated. Crazy huh! Cost me a day working this out.
I have written a plunkr specifically for this problem - Trust me this code is good ... http://embed.plnkr.co/xICScojgmcMkghMaYSsJ/preview