aboutsummaryrefslogtreecommitdiffstats
path: root/src/service
AgeCommit message (Collapse)Author
2012-01-17docs(*): various doc fixesIgor Minar
2012-01-14fix($location): do not $digest if browser's url change fired within ↵Vojta Jina
$apply/$digest Chrome (probably other browsers as well) fires 'hashchange' event synchronously, so if you change raw location from within $apply/$digest, we don't want to $apply twice. (It would throw an exception)
2012-01-13fix($http): anonnymous response interceptors should be treated as factoriesIgor Minar
2012-01-13docs($http, $httpBackend): docs docs docsIgor Minar
2012-01-13fix($http): remove support for PATCH + better whenXXX, expectXXX apiIgor Minar
- there are too many unknowns about PATCH, so I'm dropping its support until we know that this is actually useful - expectGET, expectHEAD and expectJSON (and the same for whenXXX) should not require response data to be specified
2012-01-13refactor($autoScroll): rename to $anchorScroll and allow disabling auto ↵Vojta Jina
scrolling (links) Now, that we have autoscroll attribute on ng:include, there is no reason to disable the service completely, so $anchorScrollProvider.disableAutoScrolling() means it won't be scrolling when $location.hash() changes. And then, it's not $autoScroll at all, it actually scrolls to anchor when it's called, so I renamed it to $anchorScroll.
2012-01-13fix($autoScroll): scroll even if $location is in html5 modeVojta Jina
+ use autoscroll in docs (ng:include)
2012-01-12refactor(module): strict separation between module-config / app-runtimeMisko Hevery
2012-01-09fix($httpBackend): fix for jsonp requestsIgor Minar
2012-01-09chore($http): small $http fixesIgor Minar
2012-01-09feat($http): expose req/resp headers to transform fnsIgor Minar
2012-01-09fix($http): fix and cleanup $http and friendsIgor Minar
$http: - use promises internally - get rid of XhrFuture that was previously used internally - get rid of $browser.defer calls for async stuff (serving from cache), promises will take care of asynchronicity - fix transformation bugs (when caching requested + multiple request pending + error is returned) - get rid of native header parsing and instead just lazily parse the header string $httpBackend: - don't return raw/mock XMLHttpRequest object (we don't use it for anything anymore) - call the callback with response headers string mock $httpBackend: - unify response api for expect and when - call the callback with response headers string - changed the expect/when failure error message so that EXPECTED and GOT values are aligned Conflicts: src/service/http.js test/service/compilerSpec.js test/service/httpSpec.js
2012-01-06fix($httpBackend): respond 200/404 when on file protocol (fix protocol parsing)Vojta Jina
2012-01-06feat(scope): throw exception when recursive $applyIgor Minar
2012-01-03style(q): rename src/Deferred.js to src/service/q.jsIgor Minar
2012-01-03docs(scope): fix typo $digest -> $watchMark Hansen
2012-01-03docs(resource): fix params for non-get actionsSean Gilligan
2011-12-07fix(filter): remove the $ prefix from filter service idsIgor Minar
2011-12-07fix(): use angular.callbacks namespace for jsonp callbacksIgor Minar
Previously we used to put callbacks on the window object, but that causes problems on IE8 where it is not possible to delete properties from the window object
2011-12-06fix(route): $destroy scope after update and reloadVojta Jina
When we update route (changing only search param, no route reload) and then reload (change to different route), it did not $destroy last scope.
2011-12-05feat($http): allow interceptors to be servicesIgor Minar
2011-12-01fix($resource): forwardport exposing headers from 0.9.19Igor Minar
2011-11-30docs($location): add docs for the $location.search setterIgor Minar
2011-11-30feat($interpolate): string interpolation functionMisko Hevery
2011-11-30feat($location): name the watch function to ease debuggingIgor Minar
2011-11-30scope($digest): add new&old val to the infinite $digest logIgor Minar
2011-11-30feat($http): add response interceptorsIgor Minar
2011-11-30feat($http): add promise supportIgor Minar
quite messy, some tests are missing, contains an experimental jasmine DI support)
2011-11-30feat($parse): add support for transparent evaluation of PromisesIgor Minar
Parser now builds expressions that can detect promises and transparently evaluate them to undefined or the promise value. If promiseA is resolved with value 'A', then {{promiseA}} evals to 'A'; If promiseA is unresolved, then {{promiseA}} evals to undefined; Following invocations are supported: - {{promise}} - {{promise.futureProp}} - {{[promise][0]}} - {{object.promise}} - {{object[promise]}} - {{array[promise]}} - {{fn(promise)}} - combinations of the above
2011-11-30feat(deferreds/promises): Q-like deferred/promise implementation with a ton ↵Igor Minar
of specs
2011-11-30fix($http): default json transformation should not crash on angular templateVojta Jina
The way we determine whether it's json is lame anyway. We need to change that. We should probably check the content type header...
2011-11-30style(): get rid off some jsl warningsVojta Jina
2011-11-30feat($http): allow passing custom cache instance per requestVojta Jina
You can still use cache: true, which will use $http's default cache.
2011-11-30feat($httpBackend): fix 0 status code when "file" protocolVojta Jina
Browsers return always 0 status code for "file" protocol, so we convert them into 200/404.
2011-11-30feat($http): broadcast $http.request eventVojta Jina
2011-11-30fix($http): add .send() alias for .retry() to get better stack trace on errorVojta Jina
2011-11-30refactor($http): change callback matching mechanismVojta Jina
2011-11-30fix($resource): to work with $http, $httpBackend servicesVojta Jina
Breaks Disabling $resource caching for the moment.
2011-11-30fix($http): allow multiple json vulnerability prefixesVojta Jina
We strip out both: )]}', )]}'
2011-11-30feat($http): expose pendingRequests and configuration objectVojta Jina
- $http.pendingRequests is now an array of pending requests - each request (its future object) has public property configuration
2011-11-30feat($httpBackend): extract $browser.xhr into separate serviceVojta Jina
- remove whole $browser.xhr stuff - remove whole mock $browser.xhr stuff - add $httpBackend service + migrate unit tests from $browser - add temporary API to access $browser's outstandingRequests count
2011-11-30feat($templateCache): add $templateCache - shared by ng:include, ng:viewVojta Jina
2011-11-30feat(mocks.$httpBackend): add $httpBackend mockVojta Jina
$httpBackend mock allows: - expecting (asserting) requests - stubbing (responding without asserting) Add empty $httpBackend service (currently just wrapper for $browser.xhr)
2011-11-30feat($http): new $http service, removing $xhr.*Vojta Jina
Features: - aborting requests - more flexible callbacks (per status code) - custom request headers (per request) - access to response headers - custom transform functions (both request, response) - caching - shortcut methods (get, head, post, put, delete, patch, jsonp) - exposing pendingCount() - setting timeout Breaks Renaming $xhr to $http Breaks Takes one parameter now - configuration object Breaks $xhr.cache removed - use configuration cache: true instead Breaks $xhr.error, $xhr.bulk removed Breaks Callback functions get parameters: response, status, headers Closes #38 Closes #80 Closes #180 Closes #299 Closes #342 Closes #395 Closes #413 Closes #414 Closes #507
2011-11-30feat($cacheFactory): add general purpose $cacheFactory serviceIgor Minar
2011-11-30feat($browser.xhr): add timeout option to abort requestVojta Jina
Timeouted request responds internal status code -1, which should be normalized into 0 by $xhr.
2011-11-30fix($browser.xhr): fix IE6, IE7 bug - sync xhr when serving from cacheVojta Jina
IE6, IE7 is sync when serving content from cache. We want consistent api, so we have to use setTimeout to make it async.
2011-11-30fix($browser.xhr): respond with internal -2 status on jsonp errorVojta Jina
If jsonp is not successfull, we return internal status -2. This internal status should by normalized by $xhr into 0, but $xhr needs to distinguish between jsonp-error/abort/timeout (all status 0).
2011-11-30fix($browser.xhr): change method "JSON" to "JSONP"Vojta Jina
Breaks "JSON" xhr method is now called "JSONP"
2011-11-30feat($browser): xhr returns raw request objectVojta Jina