aboutsummaryrefslogtreecommitdiffstats
path: root/src/Resource.js
AgeCommit message (Collapse)Author
2012-03-20refactor($resource): unify and simplify the codeIgor Minar
2012-03-20fix($resource): support escaping of ':' in resource urlIgor Minar
So one can how define cors/jsonp resources with port number as: resource.route('http://localhost\\:8080/Path')
2011-12-01fix($resource): forwardport exposing headers from 0.9.19Igor Minar
2011-11-30feat($http): add promise supportIgor Minar
quite messy, some tests are missing, contains an experimental jasmine DI support)
2011-11-30fix($resource): to work with $http, $httpBackend servicesVojta Jina
Breaks Disabling $resource caching for the moment.
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-09-27fix($resource): action defaults should override resource defaultsMarcello Nuccio
defaults definned per action should take precedence over defaults defined for the whole resource. This is potentialy a BREAKING CHANGE in case someone relied on the buggy behavior.
2011-08-18fix($resource): properly call error callback when resource is called with ↵Karl Seamon
two arguments
2011-07-27feat($xhr): add custom error callback to $xhr, $xhr.cache, $xhr.bulk, $resourceKarl Seamon
Closes #408
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-04-04correct $resource's success callback executionIgor Minar
succcess callbacks should be executed for status codes in the range of <200,300).
2011-03-31encode query params correctly but not too agressivelyIgor Minar
2011-03-29Don't mutate resource if server responded with no bodyAnthony Lieuallen
If the server provides response with no body to a resource request, resource should not mutate the resource model in the callback.
2011-03-28encode $resource query params using encodeURIComponentIgor Minar
2011-03-28Added missing semi-colonsVojta Jina
So that my eclipse stops complaining...
2011-03-26remove _null and _undefinedIgor Minar
they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere.
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