bartes
0c534644bc
fix(input): bind inputs to the 'input' event
...
The input event is fired on all non-ie browsers whenever the contents of an input
field changes. This means that we now support cut&paste via mouse which
was previously unsupported.
IE8 and older don't support this events and IE9 has a problematic
support for it, so we can't rely solely on this event and drop keydown
and change events.
2011-12-07 13:07:20 -08:00
Igor Minar
c28662d28d
fix(filter): remove the $ prefix from filter service ids
2011-12-07 13:07:19 -08:00
Igor Minar
b97c6e5f74
style(scopeSpec): clean up scopeSpec.js
2011-12-07 09:41:09 -08:00
Igor Minar
4e3c05b99e
feat(injector): add $provide.decorator
2011-12-07 09:41:08 -08:00
Igor Minar
5e4d59adf0
style(injector): cleanup of InjectorSpec.js
2011-12-07 09:41:07 -08:00
Igor Minar
fd38655e6c
fix(): use angular.callbacks namespace for jsonp callbacks
...
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-07 07:54:09 -08:00
Vojta Jina
b9001e9147
fix(route): $destroy scope after update and reload
...
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-06 13:35:05 -08:00
Igor Minar
d1e7a5394a
docs(form): add docs about form submission
2011-12-06 13:32:49 -08:00
Vojta Jina
2090136dd8
docs(ng:submit): update docs example to not add empty items
2011-12-06 13:07:27 -08:00
Vojta Jina
c9f2b1eec5
feat(form): do not prevent submission if action attribute present
2011-12-06 13:07:26 -08:00
Igor Minar
163e05ed36
feat($http): allow interceptors to be services
2011-12-05 23:53:26 -08:00
Igor Minar
2986a09c0d
fix(jqLite): JQLiteHasClass should work even when minified
...
closure compiler is smarter than we expected and drops the unused fn
argument - this breaks the meta-programing logic of jqLite.
The fix special cases JQLiteHasClass since its the only fn that needs
this treatment in a way that is minification-proof.
2011-12-05 14:12:00 -08:00
Igor Minar
bb2e7488fa
fix($httpBackend mock): getResponseHeader should be case insensitive
2011-12-01 18:21:45 -05:00
Igor Minar
44b2f44f93
fix($resource): forwardport exposing headers from 0.9.19
2011-12-01 16:20:08 -05:00
Igor Minar
1d14760c6d
fix(ng:include): prevent race conditions by ignoring stale http callbacks
...
This fix is similar to what I've done in ng:view, if a new template has been requested before the
callback for the previous template returned, ignore it. Otherwise weird race conditions happen
and users might end up getting the content for the previous include rendered instead of the most
recent one.
2011-11-30 14:49:36 -05:00
Igor Minar
baa7af0df0
docs($location): add docs for the $location.search setter
2011-11-30 14:49:36 -05:00
Igor Minar
f43c226c67
fix(copy,equals): prevent browser crashes with Scope or Window
...
Scope and Window instances are special and when copied can crash browser. For this reason
it makes sense to compare them only by identity.
2011-11-30 14:49:36 -05:00
Misko Hevery
0e1fa2aefe
feat($interpolate): string interpolation function
2011-11-30 14:49:36 -05:00
Igor Minar
3d0ce0ebe9
feat($location): name the watch function to ease debugging
2011-11-30 14:49:36 -05:00
Igor Minar
b00da987a9
scope($digest): add new&old val to the infinite $digest log
2011-11-30 14:49:35 -05:00
Igor Minar
188bdf7768
feat($http): add response interceptors
2011-11-30 14:49:35 -05:00
Igor Minar
dbd880cc0a
feat($http): add promise support
...
quite messy, some tests are missing, contains an experimental jasmine DI support)
2011-11-30 14:49:35 -05:00
Igor Minar
bf8e0540f8
feat(dump): add support for arrays, functions, errors
2011-11-30 14:49:35 -05:00
Igor Minar
78b6e8a446
feat($parse): add support for transparent evaluation of Promises
...
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-30 14:49:35 -05:00
Igor Minar
b656552d68
fix(angular-boostrap): add missing jQuery/jqLite binding
2011-11-30 14:49:35 -05:00
Igor Minar
1cdfa3b960
feat(deferreds/promises): Q-like deferred/promise implementation with a ton of specs
2011-11-30 14:49:03 -05:00
Vojta Jina
16363d8000
refactor(ng:view, ng:include): pass cache instance into $http
...
Instead of doing all the stuff in these widgets (checking cache, etc..) we can rely on $http now...
2011-11-30 14:49:03 -05:00
Vojta Jina
92995bbce9
fix($http): default json transformation should not crash on angular template
...
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-30 11:17:25 -05:00
Vojta Jina
b9707d910e
style(): get rid off some jsl warnings
2011-11-30 11:17:25 -05:00
Vojta Jina
5bbd64ac65
feat($http): allow passing custom cache instance per request
...
You can still use cache: true, which will use $http's default cache.
2011-11-30 11:17:25 -05:00
Vojta Jina
caeb1bf899
feat($httpBackend): fix 0 status code when "file" protocol
...
Browsers return always 0 status code for "file" protocol, so we convert them into 200/404.
2011-11-30 11:17:24 -05:00
Vojta Jina
9b4efa73f9
feat(mock.$httpBackend): say which request was expected when unexpected request error
2011-11-30 11:17:24 -05:00
Vojta Jina
4aaa2f7f6b
feat(mock.$httpBackend): verify expectations after flush()
2011-11-30 11:17:24 -05:00
Vojta Jina
6290bd4587
refactor(mock.$httpBackend): rename when().then() to when().respond()
2011-11-30 11:17:24 -05:00
Vojta Jina
e9f81b6631
fix(mock.$httpBackend): flush() even requests sent during callbacks
2011-11-30 11:17:23 -05:00
Vojta Jina
afbe073121
feat(mock.$httpBackend): add verifyNoOutstandingRequest method
...
+ rename verifyExpectations to verifyNoOutstandingExpectation
2011-11-30 11:17:23 -05:00
Vojta Jina
7b705df2b7
feat($http): broadcast $http.request event
2011-11-30 11:17:23 -05:00
Vojta Jina
a4c8ac7126
feat(mock.$httpBackend): throw when nothing to flush, dump data/headers when expected different
2011-11-30 11:17:23 -05:00
Vojta Jina
e3e2e4436e
fix($http): add .send() alias for .retry() to get better stack trace on error
2011-11-30 11:17:22 -05:00
Vojta Jina
972c3e9be0
refactor($http): change callback matching mechanism
2011-11-30 11:17:22 -05:00
Vojta Jina
feacf608ee
fix($resource): to work with $http, $httpBackend services
...
Breaks Disabling $resource caching for the moment.
2011-11-30 11:17:22 -05:00
Vojta Jina
fe633dd0cf
fix($http): allow multiple json vulnerability prefixes
...
We strip out both:
)]}',
)]}'
2011-11-30 11:17:22 -05:00
Vojta Jina
fdcc2dbfd3
feat($http): expose pendingRequests and configuration object
...
- $http.pendingRequests is now an array of pending requests
- each request (its future object) has public property configuration
2011-11-30 11:17:22 -05:00
Vojta Jina
5ad0c7d0e4
feat($httpBackend): extract $browser.xhr into separate service
...
- 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-30 11:17:22 -05:00
Vojta Jina
540701a8d8
feat(mocks.$browser): add simple addJs() method into $browser mock
2011-11-30 11:17:22 -05:00
Vojta Jina
4d2d70e7fb
feat($templateCache): add $templateCache - shared by ng:include, ng:view
2011-11-30 11:17:21 -05:00
Vojta Jina
cd28a2e952
feat(mocks.$httpBackend): add $httpBackend mock
...
$httpBackend mock allows:
- expecting (asserting) requests
- stubbing (responding without asserting)
Add empty $httpBackend service (currently just wrapper for $browser.xhr)
2011-11-30 11:12:14 -05:00
Vojta Jina
59adadca08
feat($http): new $http service, removing $xhr.*
...
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-30 11:12:14 -05:00
Igor Minar
497839f583
feat($cacheFactory): add general purpose $cacheFactory service
2011-11-30 11:03:42 -05:00
Vojta Jina
5487bdb3d1
feat($browser.xhr): add timeout option to abort request
...
Timeouted request responds internal status code -1, which should be normalized
into 0 by $xhr.
2011-11-30 11:03:42 -05:00