You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before submitting a pull request for this one, I'd like to check out the viability of this being accepted.
If you use momentjs in the filters, hell breaks loose due to a peculiarity of angular.copy, which right now copies the prototype rather than reusing it: angular/angular.js#3767 angular/angular.js#5063
A slight change to ng-table can prevent moment.js from wearing havoc:
What I'm doing here is watching JSON.stringify-ed params, rather than the objects, to prevent the angular.copy issue from running unlimited refreshes.
I'm not quite sure if this is the kind of change one would like to make in a library, however moment.js is a pretty widely adopted library, and it would make sense to be able to anticipate it's use in filter properties.
The text was updated successfully, but these errors were encountered:
Before submitting a pull request for this one, I'd like to check out the viability of this being accepted.
If you use momentjs in the filters, hell breaks loose due to a peculiarity of
angular.copy
, which right now copies the prototype rather than reusing it:angular/angular.js#3767
angular/angular.js#5063
A slight change to ng-table can prevent moment.js from wearing havoc:
What I'm doing here is watching JSON.stringify-ed params, rather than the objects, to prevent the
angular.copy
issue from running unlimited refreshes.I'm not quite sure if this is the kind of change one would like to make in a library, however moment.js is a pretty widely adopted library, and it would make sense to be able to anticipate it's use in filter properties.
The text was updated successfully, but these errors were encountered: