aboutsummaryrefslogtreecommitdiffstats
path: root/src/Resource.js
AgeCommit message (Collapse)Author
2011-02-17resources should not over-encode chars in url pathIgor Minar
- added encodeUriSegment that properly encodes only those chars that URI RFC requires us to encode - modified Resource to use encodeUriSegment
2011-02-10$resource should encode url params with encodeURIComponentIgor Minar
2011-01-11adding a fallthrough commentIgor Minar
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2010-10-15fixed lint warnings and one flaky testMisko Hevery
2010-09-22Reduce copies done by Resource.Alkis Evlogimenos
When a method foo is called on a Resource object, say myResource there are two copies that happen to the resource: - one inside Resource.foo() in some dummy function - another inside myResource.$foo() inside the callback passed to foo()
2010-09-16Expose GET operations on resources as well. This allows us to readAlkis Evlogimenos
"partials". The pattern is demostrated in the unittest: Resource.query returns a list of "keys" to resources, which are partially defined. They have enough data to allow $get to fetch the whole gamout. Then $get fetches all the details of the resource.
2010-09-16Delete requests on resources pass this as data. Delete requests should not ↵Misko Hevery
be passing data in the body of the response. The bug is here: http://github.com/angular/angular.js/blob/master/src/Resource.js#L119 Instead of checking for !isGet you should be checking for !isPost. Also isPost should be isPostOrPut since only on those two methods should be sending a payload if I am not mistaken.
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-07-22added jsonp to resourcesMisko Hevery
2010-07-13better naming for our verify cache scheme, and tests.Rob Spies
2010-06-22Merge http://github.com/angular/angular.js into angularRob Spies
Conflicts: .gitignore
2010-05-19added error handler to xhr requestsMisko Hevery
2010-05-07xhr bulk fixesMisko Hevery
2010-04-27resources now use browser mockMisko Hevery
2010-04-03injection is now workingMisko Hevery
2010-03-29dissabled a lot of tests, and made the core test set pass.Misko Hevery
2010-03-18initial revision of new plugable compilerMisko Hevery
2010-03-16make xhr just a methodAdam Abrons
2010-03-16twitter using resourcesAdam Abrons
2010-03-15resources, with bind()Adam Abrons
2010-03-15copy response into resource on save. update jstestdriverAdam Abrons
2010-03-15added resources; removed compiled codeMisko Hevery