3 ms·
Thanks. Okay, that makes sense. The $resource usage described still works in version 1.2.19, with no promise unwrapping options set. I could be wrong, but I th
by donmack 12y ago
Thanks. Okay, that makes sense.
The $resource usage described still works in version 1.2.19, with no promise unwrapping options set. I could be wrong, but I think it is because the $resource returns a reference to an empty object that has values copied into it when the call completes. The actual promise is a property named $promise on the returned object.
Example: http://jsfiddle.net/92zmG/7/ http://jsfiddle.net/92zmG/7/