-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to $decode an array of strings #362
Comments
I'm having a similar issue, did you find a solution to this in the end? |
@waleedasif322 perhaps this will help? #224 |
Hey, I didn't figure it out yet, but if I do, will post back here. Right now I'm just using angular's $http in place of restmod for this particular API |
Thanks for that :-) |
You can define your own Model.unpack function to re-formate the response coming straight from the server. If you are still in need of the code, I can post it out here. |
First off, I'd like to thank the creators and contributors for this fantastic plugin, I've been using it for a while and it's really robust!
After I call
$collection().$fetch()
on a model, my server returns an array of strings. I know how to add a mixin to the model to accept an object instead of an array, as I've done before. The problem I'm having now is restmod expects objects inside the array. How do I configure this?Record $decode expected an object
is the error I get.Thanks!
The text was updated successfully, but these errors were encountered: