aboutsummaryrefslogtreecommitdiffstats
path: root/src/service
AgeCommit message (Collapse)Author
2011-09-27fix($route): fix regex escaping in route matcherIgor Minar
2011-09-02test(jsonp): fixing jsonp e2e testsIgor Minar
- buzz api keeps on throttling our requests which makes our build fail so I'm disabling the buzz demo e2e test - the $xhr service jsonp test was modified to use jsonp on angularjs.org instead of buzz api for the same reason as mentioned above
2011-08-19feat($route): add reloadOnSearch route param to avoid reloadsIgor Minar
In order to avoid unnecesary route reloads when just hashSearch part of the url changes, it is now possible to disable this behavior by setting reloadOnSearch param of the route declaration to false. Closes #354
2011-08-19feat($xhr,$resource): expose response headers in callbacksKarl Seamon
all $xhr*, $resource and related mocks now have access to headers from their callbacks
2011-08-19doc(sample): Add javascript sandbox integration (jsFiddle)dandoyon
Change doc_widget.js to: - render "edit in jsfiddle" button next to all examples - make opt out certain examples by adding jsfiddle="false" attribute to doc:source element
2011-08-18doc(xhr): add e2e test for JSONP error handlingDi Peng
- add e2e tests - refactor the example by removing clear button and simplifying the code
2011-08-18fix($xhr.error): fix docs and add missed breaking changeVojta Jina
$xhr.error's first argument (request) has no callback property anymore, it's called success now... This breaking change was introduced by b5594a773a6f07dcba914aa385f92d3305285b24
2011-08-18doc(typos): fix couple of typos in the docsdandoyon
Minor documentation fixes. Should not be any code changes. One test changed due to dependency on text in documentation.
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-07-13doc($route): fix $route example and couple of typosVojta Jina
Rewrite $route example a bit, as it required $location and $route services to be eager published in the root scope. Fix small typos in formatter and ng:options docs.
2011-06-30feat:$xhr: provide access to $xhr header defaultsIgor Minar
$xhr header defaults are now exposed as $xhr.defaults.headers.common and $xhr.default.headers.<httpmethod>. This allows applications to configure their defaults as needed. This commit doesn't allow headers to be set per request, only per application. Per request change would require api change, which I tried to avoid *for now*.
2011-06-08Should have replaced all instances of element('input[name=something]').val() ↵Di Peng
with input('name').val() Closes #376
2011-06-07Fix couple of failing e2e testsVojta Jina
The reason was recent change in docs url
2011-06-06Fix links in docsVojta Jina
2011-05-02fix broken link $xhr docsIgor Minar
2011-04-08fix $location service docs and examplesIgor Minar
2011-03-30make xhr.cache optionally synchronousIgor Minar
- add `sync` flag xhr.cache - change ng:include to use the sync flag - change ng:view to use the sync flag The end result is that there are fewer repaints in the browser, which means less "blinking" that user sees.
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-03-11Added XSRF prevention logic to $xhr serviceMisko Hevery
2011-03-11Consider all 2xx responses as OK, not just 200Misko Hevery
2011-03-03re-eagarizing the $hover service - mea culpaIgor Minar
2011-03-02$xhr service now autodetects and strips )]}',\nIgor Minar
")]}\',\n" is a commonly used security prefix added to json http responses iat google and elsewhere in order to prevent certain cross-site attacks $xhr service now autodetects the prefix and strips it before deserializing the json. the implementation should be more flexible to allow for wider range of prefixes, but we need this one right now and can address other usecases later.
2011-02-27$cookie factory fn should not run $evalIgor Minar
2011-02-25Added delay parameter to the $defer serviceMisko Hevery
2011-02-17make all built-in services lazyIgor Minar
now that we require DI everywhere, we don't need any of these services to be eager - they get initialized when and only when they are requested.
2011-02-16improving the $document docsIgor Minar
Closes #276
2011-02-16Small spelling and grammar fixes in documentation.Anthony Lieuallen
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"