File tree 3 files changed +251
-234
lines changed
3 files changed +251
-234
lines changed Original file line number Diff line number Diff line change @@ -1442,9 +1442,20 @@ function DSHttpAdapterProvider() {
1442
1442
* @description
1443
1443
* Transform the angular-data query to something your server understands. You might just do this on the server instead.
1444
1444
*
1445
+ * ## Example:
1446
+ * ```js
1447
+ * DSHttpAdapterProvider.defaults.queryTransform = function (resourceName, params) {
1448
+ * if (params && params.userId) {
1449
+ * params.user_id = params.userId;
1450
+ * delete params.userId;
1451
+ * }
1452
+ * return params;
1453
+ * };
1454
+ * ```
1455
+ *
1445
1456
* @param {string } resourceName The name of the resource.
1446
- * @param {object } params Params sent through from `$http() `.
1447
- * @returns {* } Returns `params` as-is.
1457
+ * @param {object } params Params that will be passed to `$http`.
1458
+ * @returns {* } By default just returns `params` as-is.
1448
1459
*/
1449
1460
queryTransform : function ( resourceName , params ) {
1450
1461
return params ;
@@ -1463,9 +1474,7 @@ function DSHttpAdapterProvider() {
1463
1474
* angular.extend(DSHttpAdapterProvider.defaults.$httpConfig, {
1464
1475
* interceptor: [...],
1465
1476
* headers: {
1466
- * common: {
1467
- * Authorization: 'Basic YmVlcDpib29w'
1468
- * }
1477
+ * Authorization: 'Basic YmVlcDpib29w'
1469
1478
* },
1470
1479
* timeout: 20000
1471
1480
* });
Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ <h1>Respect your data</h1>
73
73
< br >
74
74
Angular-data does not require angular-cache in order to work.
75
75
</ p >
76
+
77
+ < p >
78
+ < strong > Now what?</ strong >
79
+ < br >
80
+ < a href ="/documentation/guide/angular-data/overview "> Dive in!</ a >
81
+ </ p >
76
82
</ div >
77
83
</ div >
78
84
</ div >
You can’t perform that action at this time.
0 commit comments