In my Angularjs application I have the limitation that if user changes his system date manually, application starts using that date for all UI operations.
I want to detect if user has changed his system date manually to some older date and compare it with server date stored in my cookies and throw him an error. I tried using :
$window.addEventListener('timeupdate', function() {
alert('I changed');
});
but this didn't worked. Is there a way in Angular to do this.