Vote count:
0
I'm retrieving plain json data via my service and then attaching some behaviour to it via a constructor and prototype methods. When this object is returned from the service to the controller, I can see via developer tools that it has the correct 'class' name, however none of the methods are available. When testing my classes and protoypes outside of an angularjs app, they work as expected .
I am unable to post proper code atm as I'm posting this question via mobile, so i hope the above gives you an idea of what Im attempting to do. Id like to know if: 1. Is this possible? 2. If so, what could I be doing wrong?
asked 48 secs ago
Aucun commentaire:
Enregistrer un commentaire