X Tutup
Skip to content

Commit 2123772

Browse files
docs(api): escape params that have <object> in their type
Really the doc-gen process should escape there but for now this should stop the layout from breaking.
1 parent cb1efd8 commit 2123772

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

src/ng/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ function $HttpProvider() {
573573
* - **headers** – `{function([headerName])}` – Header getter function.
574574
* - **config** – `{Object}` – The configuration object that was used to generate the request.
575575
*
576-
* @property {Array.<Object>} pendingRequests Array of config objects for currently pending
576+
* @property {Array.&ltObject&gt;} pendingRequests Array of config objects for currently pending
577577
* requests. This is primarily meant to be used for debugging purposes.
578578
*
579579
*

src/ngResource/resource.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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.&lt;Object&gt;=} 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

src/ngRoute/route.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ function $RouteProvider(){
8383
*
8484
* If `template` is a function, it will be called with the following parameters:
8585
*
86-
* - `{Array.<Object>}` - route parameters extracted from the current
86+
* - `{Array.&lt;Object&gt;}` - route parameters extracted from the current
8787
* `$location.path()` by applying the current route
8888
*
8989
* - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
9090
* template that should be used by {@link ngRoute.directive:ngView ngView}.
9191
*
9292
* If `templateUrl` is a function, it will be called with the following parameters:
9393
*
94-
* - `{Array.<Object>}` - route parameters extracted from the current
94+
* - `{Array.&lt;Object&gt;}` - route parameters extracted from the current
9595
* `$location.path()` by applying the current route
9696
*
9797
* - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
@@ -248,7 +248,7 @@ function $RouteProvider(){
248248
* - `$scope` - The current route scope.
249249
* - `$template` - The current route template HTML.
250250
*
251-
* @property {Array.<Object>} routes Array of all configured routes.
251+
* @property {Array.&lt;Object&gt;} routes Array of all configured routes.
252252
*
253253
* @description
254254
* `$route` is used for deep-linking URLs to controllers and views (HTML partials).

0 commit comments

Comments
 (0)
X Tutup