You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/angular-data.js
+8-1
Original file line number
Diff line number
Diff line change
@@ -2554,6 +2554,7 @@ function errorPrefix(resourceName) {
2554
2554
* - `{boolean=}` - `useClass` - Whether to wrap the injected item with the resource's instance constructor.
2555
2555
* - `{boolean=}` - `cacheResponse` - Inject the data returned by the adapter into the data store. Default: `true`.
2556
2556
* - `{boolean=}` - `upsert` - If `attrs` already contains a primary key, then attempt to call `DS.update` instead. Default: `true`.
2557
+
* - `{boolean=}` - `eagerInject` - Eagerly inject the attributes into the store without waiting for a successful response from the adapter. Default: `false`.
2557
2558
* - `{function=}` - `beforeValidate` - Override the resource or global lifecycle hook.
2558
2559
* - `{function=}` - `validate` - Override the resource or global lifecycle hook.
2559
2560
* - `{function=}` - `afterValidate` - Override the resource or global lifecycle hook.
@@ -2655,6 +2656,12 @@ function create(resourceName, attrs, options) {
@@ -2700,7 +2707,7 @@ function errorPrefix(resourceName, id) {
2700
2707
*
2701
2708
* - `{function=}` - `beforeDestroy` - Override the resource or global lifecycle hook.
2702
2709
* - `{function=}` - `afterDestroy` - Override the resource or global lifecycle hook.
2703
-
* - `{boolean=}` - `eagerInject` - If `true` eagerly eject the item from the store without waiting for the adapter's response, the item will be re-injected if the adapter operation fails. Default: `false`.
2710
+
* - `{boolean=}` - `eagerEject` - If `true` eagerly eject the item from the store without waiting for the adapter's response, the item will be re-injected if the adapter operation fails. Default: `false`.
2704
2711
*
2705
2712
* @returns {Promise} Promise produced by the `$q` service.
Copy file name to clipboardExpand all lines: src/datastore/async_methods/create.js
+7
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ function errorPrefix(resourceName) {
35
35
* - `{boolean=}` - `useClass` - Whether to wrap the injected item with the resource's instance constructor.
36
36
* - `{boolean=}` - `cacheResponse` - Inject the data returned by the adapter into the data store. Default: `true`.
37
37
* - `{boolean=}` - `upsert` - If `attrs` already contains a primary key, then attempt to call `DS.update` instead. Default: `true`.
38
+
* - `{boolean=}` - `eagerInject` - Eagerly inject the attributes into the store without waiting for a successful response from the adapter. Default: `false`.
38
39
* - `{function=}` - `beforeValidate` - Override the resource or global lifecycle hook.
39
40
* - `{function=}` - `validate` - Override the resource or global lifecycle hook.
40
41
* - `{function=}` - `afterValidate` - Override the resource or global lifecycle hook.
@@ -136,6 +137,12 @@ function create(resourceName, attrs, options) {
Copy file name to clipboardExpand all lines: src/datastore/async_methods/destroy.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ function errorPrefix(resourceName, id) {
32
32
*
33
33
* - `{function=}` - `beforeDestroy` - Override the resource or global lifecycle hook.
34
34
* - `{function=}` - `afterDestroy` - Override the resource or global lifecycle hook.
35
-
* - `{boolean=}` - `eagerInject` - If `true` eagerly eject the item from the store without waiting for the adapter's response, the item will be re-injected if the adapter operation fails. Default: `false`.
35
+
* - `{boolean=}` - `eagerEject` - If `true` eagerly eject the item from the store without waiting for the adapter's response, the item will be re-injected if the adapter operation fails. Default: `false`.
36
36
*
37
37
* @returns {Promise} Promise produced by the `$q` service.
0 commit comments