aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
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(dump): add support for arrays, functions, errorsIgor Minar
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-30fix(angular-boostrap): add missing jQuery/jqLite bindingIgor Minar
2011-11-30feat(deferreds/promises): Q-like deferred/promise implementation with a ton ↵Igor Minar
of specs
2011-11-30refactor(ng:view, ng:include): pass cache instance into $httpVojta Jina
Instead of doing all the stuff in these widgets (checking cache, etc..) we can rely on $http now...
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(mock.$httpBackend): say which request was expected when unexpected ↵Vojta Jina
request error
2011-11-30feat(mock.$httpBackend): verify expectations after flush()Vojta Jina
2011-11-30refactor(mock.$httpBackend): rename when().then() to when().respond()Vojta Jina
2011-11-30fix(mock.$httpBackend): flush() even requests sent during callbacksVojta Jina
2011-11-30feat(mock.$httpBackend): add verifyNoOutstandingRequest methodVojta Jina
+ rename verifyExpectations to verifyNoOutstandingExpectation
2011-11-30feat($http): broadcast $http.request eventVojta Jina
2011-11-30feat(mock.$httpBackend): throw when nothing to flush, dump data/headers when ↵Vojta Jina
expected different
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(mocks.$browser): add simple addJs() method into $browser mockVojta Jina
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
2011-11-21feat(service.$autoScroll): scroll to hash fragmentVojta Jina
- whenever hash part of the url changes - after ng:view / ng:include load
2011-11-21fix(scope): $watch (and angular.equals) should support NaN valuesCodier
- since NaN !== NaN in javascript digest can get into an infinite loop when model value is set to NaN - angular.equals(NaN, NaN) should return true since that's what we expect when comparing primitives or objects containing NaN values Previously NaN because of its special === properties was used as the initial value for watches, but that results in issues when NaN is used as model value. In order to allow for model to be anything incuding undefined and NaN we need to mark the initial value differently in a way that would avoid these issues, allow us to run digest without major perf penalties and allow for clients to determine if the listener is being called because the watcher is being initialized or because the model changed. This implementation covers all of these scenarios. BREAKING CHANGE: previously to detect if the listener was called because the watcher was being initialized, it was suggested that clients check if old value is NaN. With this change, the check should be if the newVal equals the oldVal. Closes #657
2011-11-18chore(browser): rename Browser.js -> browser.js, BrowserSpec.js -> ↵TEHEK Firefox
browserSpec.js And move them to proper service subfolder...
2011-11-15fix(input): treat all not number model as blankMisko Hevery
2011-11-15fix(radio): fix binding to value={{exp}}Misko Hevery
2011-11-14refactor(injector): removed loadModule/ng:moduleMisko Hevery
- added module property to doc:example
2011-11-14style(angularPublic): move public export definition to AnuglarPublic.jsMisko Hevery
2011-11-14doc(rename): NG_LOCALE -> ngLocaleMisko Hevery
2011-11-14refactor(injector): $injector is no longer a function.Misko Hevery
- $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn);
2011-11-14del($eager): removed the support for $eager servicesMisko Hevery
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14feat(bootstrap): added angular.bootstrap methodMisko Hevery
2011-11-14fix(doc) cleanup all api doc link warningsMisko Hevery
2011-11-14fix($location): links without path segment should not change the pathVojta Jina
Closes #648
2011-11-14docs(browser): moved and migrate browser removed unneeded files.Misko Hevery