diff options
| author | Igor Minar | 2012-01-15 23:28:10 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-01-17 09:49:37 -0800 |
| commit | 92af30ce6e99676c71c85bd08962b68629564908 (patch) | |
| tree | 4adf4b56cbf7c9fb6ee9dee8f40dd16fb2199842 /src/service | |
| parent | 54581d36df74ac128a078aafb3e4b66e0b1599f3 (diff) | |
| download | angular.js-92af30ce6e99676c71c85bd08962b68629564908.tar.bz2 | |
docs(*): various doc fixes
Diffstat (limited to 'src/service')
| -rw-r--r-- | src/service/resource.js | 7 | ||||
| -rw-r--r-- | src/service/scope.js | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/service/resource.js b/src/service/resource.js index 8596c1df..d2b722c2 100644 --- a/src/service/resource.js +++ b/src/service/resource.js @@ -30,8 +30,8 @@ * @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 following format: * - * {action1: {method:?, params:?, isArray:?, verifyCache:?}, - * action2: {method:?, params:?, isArray:?, verifyCache:?}, + * {action1: {method:?, params:?, isArray:?}, + * action2: {method:?, params:?, isArray:?}, * ...} * * Where: @@ -43,9 +43,6 @@ * - `params` – {object=} – Optional set of pre-bound parameters for this action. * - isArray – {boolean=} – If true then the returned object for this action is an array, see * `returns` section. - * - verifyCache – {boolean=} – If true then whenever cache hit occurs, the object is returned and - * an async request will be made to the server and the resources as well as the cache will be - * updated when the response is received. * * @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: diff --git a/src/service/scope.js b/src/service/scope.js index a19bf83e..fe72c953 100644 --- a/src/service/scope.js +++ b/src/service/scope.js @@ -212,7 +212,8 @@ function $RootScopeProvider(){ * * # Example <pre> - var scope = angular.module.ng.$rootScope.Scope(); + // let's assume that scope was dependency injected as the $rootScope + var scope = $rootScope; scope.name = 'misko'; scope.counter = 0; |
