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
Unfortunately, the way dirty checking works cannot support this. With angular's $scope, dirty-checking does not start until a value is added to the scope. Likewise, dirty-checking does not start until items are injected. In order to setup dirty-checking, observers have to be activated. In order to complete the solution the observers have to be cleaned up when items are ejected. That's the part that is impossible for non-injected items, and this is why I can't implement dirty-checking for non-injected items. Computed properties rely on dirty-checking, so computed properties cannot automatically work for non-injected items. You can however, compute the properties yourself:
It's possible I could add that compute method to the prototype of resource instances, so you could manually re-compute properties, but it would be unavailable if devs use useClass: false.
It would be nice if the computed properties worked with items which have not yet been inserted in to the cache. Example:
The text was updated successfully, but these errors were encountered: