Re:How to Wire Up Ruby on Rails and AngularJS as a Single-Pa...
by donmack on Friday July 25, 2014 @11:01AM
(#8085534)
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.
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/