<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| var module = angular.module( 'my.resource', [ 'ngResource' ] ); | |
| module.factory( 'Resource', [ '$resource', function( $resource ) { | |
| return function( url, params, methods ) { | |
| var defaults = { | |
| update: { method: 'put', isArray: false }, | |
| create: { method: 'post' } | |
| }; | |
| methods = angular.extend( defaults, methods ); |
The diff output is more specific:
[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.
>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.
| <script> | |
| function curry(f) | |
| { | |
| if (typeof f != "function" || f.length < 2) | |
| return f; | |
| return mkHelper(f, []); | |
| } | |
| function mkHelper(f, args) |