<feed xmlns='http://www.w3.org/2005/Atom'>
<title>angular.js/src/ngResource, branch v1.2.0-rc.2</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/'/>
<entry>
<title>docs(module): improve the installation instructions for optional modules</title>
<updated>2013-08-22T23:55:54+00:00</updated>
<author>
<name>Brian Ford</name>
</author>
<published>2013-08-22T19:32:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=57c43dd3762ea665125bff7e4727bce06a225b32'/>
<id>57c43dd3762ea665125bff7e4727bce06a225b32</id>
<content type='text'>
Currently, the documentation does a bad job of explaining the distinction between the services that it provides,
and the module itself. Furthermore, the instructions for using optional modules are inconsistent or missing.
This commit addresses the problem by ading a new `{@installModule foo}` annotation to the docs generator that
inlines the appropriate instructions based on the name of the module.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, the documentation does a bad job of explaining the distinction between the services that it provides,
and the module itself. Furthermore, the instructions for using optional modules are inconsistent or missing.
This commit addresses the problem by ading a new `{@installModule foo}` annotation to the docs generator that
inlines the appropriate instructions based on the name of the module.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(docs): Replace missing end tilde in resource docs for minerr.</title>
<updated>2013-08-21T23:43:03+00:00</updated>
<author>
<name>Adam Shannon</name>
</author>
<published>2013-08-19T19:33:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=8ee9a3e902e523577f9ea331af56c7bad6b4eea9'/>
<id>8ee9a3e902e523577f9ea331af56c7bad6b4eea9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>style(minerr): prefer component name as namespace</title>
<updated>2013-08-09T21:12:04+00:00</updated>
<author>
<name>Ken Sheedlo</name>
</author>
<published>2013-08-09T18:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=45dc9ee7b4a1e004f9fb7edde41d4805d1402ffa'/>
<id>45dc9ee7b4a1e004f9fb7edde41d4805d1402ffa</id>
<content type='text'>
Closes #3527
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3527
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(resource): check whether response matches action.isArray</title>
<updated>2013-07-31T20:17:37+00:00</updated>
<author>
<name>Pete Bacon Darwin</name>
</author>
<published>2013-07-30T21:48:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=a644ca7b4e6ba84a467bcabed8f99386eda7fb14'/>
<id>a644ca7b4e6ba84a467bcabed8f99386eda7fb14</id>
<content type='text'>
When using $resource you must setup your actions carefully based on what the server returns.
If the server responds to a request with an array then you must configure the action with
`isArray:true` and vice versa.  The built-in `get` action defaults to `isArray:false` and the
`query` action defaults to `isArray:true`, which is must be changed if the server does not do this.
Before the error message was an exception inside angular.copy, which didn't explain what the
real problem was. Rather than changing the way that angular.copy works, this change ensures that
a better error message is provided to the programmer if they do not set up their resource actions
correctly.

Closes #2255, #1044
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using $resource you must setup your actions carefully based on what the server returns.
If the server responds to a request with an array then you must configure the action with
`isArray:true` and vice versa.  The built-in `get` action defaults to `isArray:false` and the
`query` action defaults to `isArray:true`, which is must be changed if the server does not do this.
Before the error message was an exception inside angular.copy, which didn't explain what the
real problem was. Rather than changing the way that angular.copy works, this change ensures that
a better error message is provided to the programmer if they do not set up their resource actions
correctly.

Closes #2255, #1044
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(Angular): provide minErr as public property</title>
<updated>2013-07-18T21:02:36+00:00</updated>
<author>
<name>Pete Bacon Darwin</name>
</author>
<published>2013-07-08T13:42:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=ef4458a798b6736050436bb63e5a5c90ce958790'/>
<id>ef4458a798b6736050436bb63e5a5c90ce958790</id>
<content type='text'>
This allows us to use minErr in other modules, such as resource and sanitize.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows us to use minErr in other modules, such as resource and sanitize.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore(resource): use minErr to throw exception</title>
<updated>2013-07-18T21:02:36+00:00</updated>
<author>
<name>Pete Bacon Darwin</name>
</author>
<published>2013-07-08T10:42:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=aad29cbbf0b101bc5e793a66df7e368c7968cad8'/>
<id>aad29cbbf0b101bc5e793a66df7e368c7968cad8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat($resource): support an unescaped URL port</title>
<updated>2013-07-12T09:47:46+00:00</updated>
<author>
<name>Leandro Ostera</name>
</author>
<published>2013-05-14T05:41:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=b94ca12fa0b027d8592f5717e038b7b116c59384'/>
<id>b94ca12fa0b027d8592f5717e038b7b116c59384</id>
<content type='text'>
The colon character is used to identify parameters in $resource.
This meant that we had to escape the colon used in a port.
It turns out that this is not necessary if we assume that parameter
names cannot consist of only digits.
If the parameter consists only of numbers, then it's a port.

Closes #2778
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The colon character is used to identify parameters in $resource.
This meant that we had to escape the colon used in a port.
It turns out that this is not necessary if we assume that parameter
names cannot consist of only digits.
If the parameter consists only of numbers, then it's a port.

Closes #2778
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor($route): pull $route and friends into angular-route.js</title>
<updated>2013-06-07T00:07:12+00:00</updated>
<author>
<name>Igor Minar</name>
</author>
<published>2013-06-05T22:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=5599b55b04788c2e327d7551a4a699d75516dd21'/>
<id>5599b55b04788c2e327d7551a4a699d75516dd21</id>
<content type='text'>
$route, $routeParams and ngView have been pulled from core angular.js
to angular-route.js/ngRoute module.

This is was done to in order keep the core focused on most commonly
used functionality and allow community routers to be freely used
instead of $route service.

There is no need to panic, angular-route will keep on being supported
by the angular team.

Note: I'm intentionally not fixing tutorial links. Tutorial will need
bigger changes and those should be done when we update tutorial to
1.2.

BREAKING CHANGE: applications that use $route will now need to load
angular-route.js file and define dependency on ngRoute module.

Before:

```
...
&lt;script src="angular.js"&gt;&lt;/script&gt;
...
var myApp = angular.module('myApp', ['someOtherModule']);
...
```

After:

```
...
&lt;script src="angular.js"&gt;&lt;/script&gt;
&lt;script src="angular-route.js"&gt;&lt;/script&gt;
...
var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']);
...
```

Closes #2804
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
$route, $routeParams and ngView have been pulled from core angular.js
to angular-route.js/ngRoute module.

This is was done to in order keep the core focused on most commonly
used functionality and allow community routers to be freely used
instead of $route service.

There is no need to panic, angular-route will keep on being supported
by the angular team.

Note: I'm intentionally not fixing tutorial links. Tutorial will need
bigger changes and those should be done when we update tutorial to
1.2.

BREAKING CHANGE: applications that use $route will now need to load
angular-route.js file and define dependency on ngRoute module.

Before:

```
...
&lt;script src="angular.js"&gt;&lt;/script&gt;
...
var myApp = angular.module('myApp', ['someOtherModule']);
...
```

After:

```
...
&lt;script src="angular.js"&gt;&lt;/script&gt;
&lt;script src="angular-route.js"&gt;&lt;/script&gt;
...
var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']);
...
```

Closes #2804
</pre>
</div>
</content>
</entry>
<entry>
<title>feat($resource): expose promise instead of only $then</title>
<updated>2013-05-23T21:18:29+00:00</updated>
<author>
<name>Alexander Shtuchkin</name>
</author>
<published>2013-04-16T22:08:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=05772e15fbecfdc63d4977e2e8839d8b95d6a92d'/>
<id>05772e15fbecfdc63d4977e2e8839d8b95d6a92d</id>
<content type='text'>
- 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;
      }
    }
  }
});
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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;
      }
    }
  }
});
</pre>
</div>
</content>
</entry>
<entry>
<title>feat($http): add support for aborting via timeout promises</title>
<updated>2013-05-20T21:15:04+00:00</updated>
<author>
<name>David Bennett</name>
</author>
<published>2013-04-27T15:22:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=9f4f5937112655a9881d3281da8e72035bc8b180'/>
<id>9f4f5937112655a9881d3281da8e72035bc8b180</id>
<content type='text'>
If the timeout argument is a promise, abort the request when it is resolved.
Implemented by adding support to $httpBackend service and $httpBackend mock
service.

This api can also be used to explicitly abort requests while keeping the
communication between the deffered and promise unidirectional.

Closes #1159
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the timeout argument is a promise, abort the request when it is resolved.
Implemented by adding support to $httpBackend service and $httpBackend mock
service.

This api can also be used to explicitly abort requests while keeping the
communication between the deffered and promise unidirectional.

Closes #1159
</pre>
</div>
</content>
</entry>
</feed>
