<feed xmlns='http://www.w3.org/2005/Atom'>
<title>angular.js/test/ngResource, branch v1.2.10</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/'/>
<entry>
<title>fix($resource): prevent URL template from collapsing into an empty string</title>
<updated>2014-01-03T07:07:27+00:00</updated>
<author>
<name>Gias Kay Lee</name>
</author>
<published>2013-12-20T15:15:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=131e4014b831ac81b7979c4523da81ebc5861c70'/>
<id>131e4014b831ac81b7979c4523da81ebc5861c70</id>
<content type='text'>
if url template would result in an empty string, we should make a request
to '/' instead.

Closes #5455
Closes #5493
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
if url template would result in an empty string, we should make a request
to '/' instead.

Closes #5455
Closes #5493
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($resource): Always return a resource instance when calling class methods on resources.</title>
<updated>2013-11-21T17:51:02+00:00</updated>
<author>
<name>Tobias Bosch</name>
</author>
<published>2013-11-21T00:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=f6ecf9a3c9090593faf5fa50586c99a56b51c776'/>
<id>f6ecf9a3c9090593faf5fa50586c99a56b51c776</id>
<content type='text'>
Previously, calling `MyResource.save(myResourceInstance)`returned
a promise, in contrast to the docs for `$resource`. However,
calling `MyResource.save({name: 'Tobias"})`already correctly
returned a resource instance.

Fixes #4545.
Closes #5061.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, calling `MyResource.save(myResourceInstance)`returned
a promise, in contrast to the docs for `$resource`. However,
calling `MyResource.save({name: 'Tobias"})`already correctly
returned a resource instance.

Fixes #4545.
Closes #5061.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($resource): don't use $parse for @dotted.member</title>
<updated>2013-11-12T00:17:34+00:00</updated>
<author>
<name>Chirayu Krishnappa</name>
</author>
<published>2013-11-09T04:44:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=9577702e8d2519c1a60f5ac4058e63bd7b919815'/>
<id>9577702e8d2519c1a60f5ac4058e63bd7b919815</id>
<content type='text'>
params and paramDefaults support looking up the parameter value from the
data object.  The syntax for that is `@nested.property.name`.
Currently, $resource uses $parse to do this.  This is too liberal
(you can use values like `@a=b` or `@a | filter` and have it work -
which doesn't really make sense).  It also puts up a dependency on
$parse which is has restrictions to secure expressions used in
templates.  The value here, though a string, is specified in Javascript
code and shouldn't have those restrictions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
params and paramDefaults support looking up the parameter value from the
data object.  The syntax for that is `@nested.property.name`.
Currently, $resource uses $parse to do this.  This is too liberal
(you can use values like `@a=b` or `@a | filter` and have it work -
which doesn't really make sense).  It also puts up a dependency on
$parse which is has restrictions to secure expressions used in
templates.  The value here, though a string, is specified in Javascript
code and shouldn't have those restrictions.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(*): protect calls to hasOwnProperty in public API</title>
<updated>2013-10-07T16:01:13+00:00</updated>
<author>
<name>Peter Bacon Darwin</name>
</author>
<published>2013-10-05T09:49:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=7a586e5c19f3d1ecc3fefef084ce992072ee7f60'/>
<id>7a586e5c19f3d1ecc3fefef084ce992072ee7f60</id>
<content type='text'>
Objects received from outside AngularJS may have had their `hasOwnProperty`
method overridden with something else. In cases where we can do this without
incurring a performance penalty we call directly on Object.prototype.hasOwnProperty
to ensure that we use the correct method.

Also, we have some internal hash objects, where the keys for the map are provided
from outside AngularJS. In such cases we either prevent `hasOwnProperty` from
being used as a key or provide some other way of preventing our objects from
having their `hasOwnProperty` overridden.

BREAKING CHANGE: Inputs with name equal to "hasOwnProperty" are not allowed inside
form or ngForm directives.

Before, inputs whose name was "hasOwnProperty" were quietly ignored and not added
to the scope.  Now a badname exception is thrown.

Using "hasOwnProperty" for an input name would be very unusual and bad practice.
Either do not include such an input in a `form` or `ngForm` directive or change
the name of the input.

Closes #3331</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Objects received from outside AngularJS may have had their `hasOwnProperty`
method overridden with something else. In cases where we can do this without
incurring a performance penalty we call directly on Object.prototype.hasOwnProperty
to ensure that we use the correct method.

Also, we have some internal hash objects, where the keys for the map are provided
from outside AngularJS. In such cases we either prevent `hasOwnProperty` from
being used as a key or provide some other way of preventing our objects from
having their `hasOwnProperty` overridden.

BREAKING CHANGE: Inputs with name equal to "hasOwnProperty" are not allowed inside
form or ngForm directives.

Before, inputs whose name was "hasOwnProperty" were quietly ignored and not added
to the scope.  Now a badname exception is thrown.

Using "hasOwnProperty" for an input name would be very unusual and bad practice.
Either do not include such an input in a `form` or `ngForm` directive or change
the name of the input.

Closes #3331</pre>
</div>
</content>
</entry>
<entry>
<title>fix(ngResource): Remove request body from $delete</title>
<updated>2013-10-04T23:50:08+00:00</updated>
<author>
<name>Jen Bourey</name>
</author>
<published>2013-10-04T19:02:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=8336b3a286f8469d4cd7c412c41ca8c1a31fecf0'/>
<id>8336b3a286f8469d4cd7c412c41ca8c1a31fecf0</id>
<content type='text'>
Prevent the  obj.$delete instance method from sending the resource as the request body.  This commit uses the existing hasBody boolean to only set httpConfig.data for methods which should have a request body.

Closes #4280
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prevent the  obj.$delete instance method from sending the resource as the request body.  This commit uses the existing hasBody boolean to only set httpConfig.data for methods which should have a request body.

Closes #4280
</pre>
</div>
</content>
</entry>
<entry>
<title>fix($resource): pass transformed value to both callbacks and promises</title>
<updated>2013-10-03T00:03:53+00:00</updated>
<author>
<name>jankuca</name>
</author>
<published>2013-08-30T23:19:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=e36e28ebd4a6c144e47d11fba8e211d8d5a9d03e'/>
<id>e36e28ebd4a6c144e47d11fba8e211d8d5a9d03e</id>
<content type='text'>
Closes #3817
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3817
</pre>
</div>
</content>
</entry>
<entry>
<title>test: rename / remove duplicate unit tests</title>
<updated>2013-08-23T19:43:42+00:00</updated>
<author>
<name>Vojta Jina</name>
</author>
<published>2013-08-20T21:41:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=b89a4e49b922894f93d5cc69e00016f157dee625'/>
<id>b89a4e49b922894f93d5cc69e00016f157dee625</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(minerr): log minerr doc url in development</title>
<updated>2013-08-15T20:23:18+00:00</updated>
<author>
<name>Ken Sheedlo</name>
</author>
<published>2013-08-13T22:30:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/angular.js/commit/?id=37123cd2858b4e318ed8109af745312df4848577'/>
<id>37123cd2858b4e318ed8109af745312df4848577</id>
<content type='text'>
Closes #3566
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3566
</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>
</feed>
