Friday, 6 September 2013

Multiple requests to same resource using Restangular

Multiple requests to same resource using Restangular

Using the following two calls for identical resource:
var p1 = Restangular.one('accounts', 123).one('buildings', 456).get();
var p2 = Restangular.one('accounts', 123).one('buildings', 456).get();
Will Restangular send a single GET to the server or two? Is Restangular
smart enough to know that there is already a request out to this resource
when the second get() is issued?

No comments:

Post a Comment