diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/http.js | 2 | ||||
| -rw-r--r-- | src/ngResource/resource.js | 31 | ||||
| -rw-r--r-- | src/ngRoute/route.js | 6 |
3 files changed, 20 insertions, 19 deletions
diff --git a/src/ng/http.js b/src/ng/http.js index 7d9a82be..62e255db 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -573,7 +573,7 @@ function $HttpProvider() { * - **headers** – `{function([headerName])}` – Header getter function. * - **config** – `{Object}` – The configuration object that was used to generate the request. * - * @property {Array.<Object>} pendingRequests Array of config objects for currently pending + * @property {Array.<Object>} pendingRequests Array of config objects for currently pending * requests. This is primarily meant to be used for debugging purposes. * * diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index 180ea5bb..98619918 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -98,8 +98,8 @@ function shallowClearAndCopy(src, dst) { * If the parameter value is prefixed with `@` then the value of that parameter is extracted from * the data object (useful for non-GET operations). * - * @param {Object.<Object>=} actions Hash with declaration of custom action that should extend the - * default set of resource actions. The declaration should be created in the format of {@link + * @param {Object.<Object>=} actions Hash with declaration of custom action that should extend + * the default set of resource actions. The declaration should be created in the format of {@link * ng.$http#usage_parameters $http.config}: * * {action1: {method:?, params:?, isArray:?, headers:?, ...}, @@ -145,25 +145,26 @@ function shallowClearAndCopy(src, dst) { * * @returns {Object} A resource "class" object with methods for the default set of resource actions * optionally extended with custom `actions`. The default set contains these actions: - * - * { 'get': {method:'GET'}, - * 'save': {method:'POST'}, - * 'query': {method:'GET', isArray:true}, - * 'remove': {method:'DELETE'}, - * 'delete': {method:'DELETE'} }; - * + * ```js + * { 'get': {method:'GET'}, + * 'save': {method:'POST'}, + * 'query': {method:'GET', isArray:true}, + * 'remove': {method:'DELETE'}, + * 'delete': {method:'DELETE'} }; + * ``` + * * Calling these methods invoke an {@link ng.$http} with the specified http method, * destination and parameters. When the data is returned from the server then the object is an * instance of the resource class. The actions `save`, `remove` and `delete` are available on it * as methods with the `$` prefix. This allows you to easily perform CRUD operations (create, * read, update, delete) on server-side data like this: * ```js - var User = $resource('/user/:userId', {userId:'@id'}); - var user = User.get({userId:123}, function() { - user.abc = true; - user.$save(); - }); - ``` + * var User = $resource('/user/:userId', {userId:'@id'}); + * var user = User.get({userId:123}, function() { + * user.abc = true; + * user.$save(); + * }); + * ``` * * It is important to realize that invoking a $resource object method immediately returns an * empty reference (object or array depending on `isArray`). Once the data is returned from the diff --git a/src/ngRoute/route.js b/src/ngRoute/route.js index f958849e..94c4b581 100644 --- a/src/ngRoute/route.js +++ b/src/ngRoute/route.js @@ -83,7 +83,7 @@ function $RouteProvider(){ * * If `template` is a function, it will be called with the following parameters: * - * - `{Array.<Object>}` - route parameters extracted from the current + * - `{Array.<Object>}` - route parameters extracted from the current * `$location.path()` by applying the current route * * - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html @@ -91,7 +91,7 @@ function $RouteProvider(){ * * If `templateUrl` is a function, it will be called with the following parameters: * - * - `{Array.<Object>}` - route parameters extracted from the current + * - `{Array.<Object>}` - route parameters extracted from the current * `$location.path()` by applying the current route * * - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should @@ -248,7 +248,7 @@ function $RouteProvider(){ * - `$scope` - The current route scope. * - `$template` - The current route template HTML. * - * @property {Array.<Object>} routes Array of all configured routes. + * @property {Array.<Object>} routes Array of all configured routes. * * @description * `$route` is used for deep-linking URLs to controllers and views (HTML partials). |
