1

I get a date value in my controller and I want to have the timestamp value in a $scope variable.

I do $scope.timestamp = new Date(workspace.date).getTime();

But I get error messages in console:

angular.js:63 Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!(…)

How can I avoid digest loop here?

EscapeNetscape
  • 2,892
  • 1
  • 33
  • 32

0 Answers0