angular.js/test
Alexander Shtuchkin 05772e15fb feat($resource): expose promise instead of only $then
- Instance or collection have `$promise` property which is the initial promise.
- Add per-action `interceptor`, which has access to entire $http response object.

BREAKING CHANGE: resource instance does not have `$then` function anymore.

Before:

Resource.query().$then(callback);

After:

Resource.query().$promise.then(callback);

BREAKING CHANGE: instance methods return the promise rather than the instance itself.

Before:

resource.$save().chaining = true;

After:

resource.$save();
resourve.chaining = true;

BREAKING CHANGE: On success, promise is resolved with the resource instance rather than http
response object.

Use interceptor to access the http response object.

Before:

Resource.query().$then(function(response) {...});

After:

var Resource = $resource('/url', {}, {
  get: {
    method: 'get',
    interceptor: {
      response: function(response) {
        // expose response
        return response;
      }
    }
  }
});
2013-05-23 14:18:29 -07:00
..
auto feat(injector): add has method for querying 2013-05-02 15:22:16 -04:00
ng feat($http): add support for aborting via timeout promises 2013-05-20 14:15:04 -07:00
ngCookies feat($cookieStore): $cookieStore.get now parses blank string as blank string 2013-05-08 10:04:07 +01:00
ngMobile/directive feat(ngTap): Add a CSS class while the element is held down. 2013-04-30 16:56:24 -07:00
ngMock feat($http): add support for aborting via timeout promises 2013-05-20 14:15:04 -07:00
ngResource feat($resource): expose promise instead of only $then 2013-05-23 14:18:29 -07:00
ngSanitize test(ngBindHtml): prevent variable name leak 2013-01-29 13:26:06 -08:00
ngScenario feat(scenario): adds mousedown and mouseup event triggers to scenario 2013-05-14 20:50:36 +01:00
AngularSpec.js fix(angular): do not copy $$hashKey in copy/extend functions. 2013-05-08 12:45:32 +01:00
ApiSpecs.js feat(ngRepeat): add support for custom tracking of items 2013-03-29 23:01:52 -07:00
BinderSpec.js test(sortedHtml): fix comment support in sortedHtml helper 2013-05-08 07:57:34 -07:00
jqLiteSpec.js fix(jqLite): pass a dummy event into triggerHandler 2013-05-16 16:15:31 -07:00
jquery_alias.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jquery_remove.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jQueryPatchSpec.js fix(jqLite): correctly monkey-patch core jQuery methods 2013-05-23 12:05:55 -07:00
loaderSpec.js feat($controller): support controller registration via $controllerProvider 2012-03-26 15:23:29 -07:00
matchers.js chore(matchers): fix hasBeenCalledOnceWith matcher 2013-02-11 22:13:15 -08:00
testabilityPatch.js test(sortedHtml): ignore bogus rowspan=1 and colspan=1 in IE 2013-05-08 07:57:34 -07:00