Skip to content

Commit 6b6da70

Browse files
committed
Merge pull request mgonto#1081 from rajeshwarpatlolla/develop
Updated README file. Commented url modified for 'Chain methods together to easily build complex requests' example.
2 parents 64e8fac + b9a67c8 commit 6b6da70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $scope.user.sendMessage(); // POST: /users/123/sendMessage
125125

126126
// Chain methods together to easily build complex requests
127127
$scope.user.one('messages', 123).one('from', 123).getList('unread');
128-
// GET: /user/123/messages/123/from/123/unread
128+
// GET: /users/123/messages/123/from/123/unread
129129

130130

131131
````
@@ -706,7 +706,7 @@ These are the methods that can be called on the Restangular object.
706706
* **all(route)**: This will create a new Restangular object that is just a pointer to a list of elements for the specified path.
707707
* **oneUrl(route, url)**: This will create a new Restangular object that is just a pointer to one element with the specified URL.
708708
* **allUrl(route, url)**: This creates a Restangular object that is just a pointer to a list at the specified URL.
709-
* **copy(fromElement)**: This will create a copy of the from element so that we can modified the copied one.
709+
* **copy(fromElement)**: This will create a copy of the from element so that we can modify the copied one.
710710
* **restangularizeElement(parent, element, route, queryParams)**: Restangularizes a new element
711711
* **restangularizeCollection(parent, element, route, queryParams)**: Restangularizes a new collection
712712

0 commit comments

Comments
 (0)