Open DylanPiercey opened 9 years ago
Do you mean an object that is equal to the one on your server? One without any Restangular-specific properties?
That is actually possible. Look here: https://github.com/mgonto/restangular#element-methods
plain()
The problem is that I can't use #plain in the view because it is only attached after the response.
The best way to make that happen for now is probably to define $scope.allRecords that you gonna use in the template and then, once promise is resolved, assigning plain()
to allRecords manually. Please let me know if that works for you. In v2 this will be considered as a feature.
It's really useful that I am able to get an object reference from Restangular and have angular update the view dynamically.
However it would be nice to have access to both a restangular document and a non-restangular document.
Is this possible now?