@@ -98,8 +98,8 @@ function shallowClearAndCopy(src, dst) {
9898 * If the parameter value is prefixed with `@` then the value of that parameter is extracted from
9999 * the data object (useful for non-GET operations).
100100 *
101- * @param {Object.< Object> = } actions Hash with declaration of custom action that should extend the
102- * default set of resource actions. The declaration should be created in the format of {@link
101+ * @param {Object.< Object> = } actions Hash with declaration of custom action that should extend
102+ * the default set of resource actions. The declaration should be created in the format of {@link
103103 * ng.$http#usage_parameters $http.config}:
104104 *
105105 * {action1: {method:?, params:?, isArray:?, headers:?, ...},
@@ -145,25 +145,26 @@ function shallowClearAndCopy(src, dst) {
145145 *
146146 * @returns {Object } A resource "class" object with methods for the default set of resource actions
147147 * optionally extended with custom `actions`. The default set contains these actions:
148- *
149- * { 'get': {method:'GET'},
150- * 'save': {method:'POST'},
151- * 'query': {method:'GET', isArray:true},
152- * 'remove': {method:'DELETE'},
153- * 'delete': {method:'DELETE'} };
154- *
148+ * ```js
149+ * { 'get': {method:'GET'},
150+ * 'save': {method:'POST'},
151+ * 'query': {method:'GET', isArray:true},
152+ * 'remove': {method:'DELETE'},
153+ * 'delete': {method:'DELETE'} };
154+ * ```
155+ *
155156 * Calling these methods invoke an {@link ng.$http} with the specified http method,
156157 * destination and parameters. When the data is returned from the server then the object is an
157158 * instance of the resource class. The actions `save`, `remove` and `delete` are available on it
158159 * as methods with the `$` prefix. This allows you to easily perform CRUD operations (create,
159160 * read, update, delete) on server-side data like this:
160161 * ```js
161- var User = $resource('/user/:userId', {userId:'@id '});
162- var user = User.get({userId:123}, function() {
163- user.abc = true;
164- user.$save();
165- });
166- ```
162+ * var User = $resource('/user/:userId', {userId:'@id '});
163+ * var user = User.get({userId:123}, function() {
164+ * user.abc = true;
165+ * user.$save();
166+ * });
167+ * ```
167168 *
168169 * It is important to realize that invoking a $resource object method immediately returns an
169170 * empty reference (object or array depending on `isArray`). Once the data is returned from the
0 commit comments