From 92af30ce6e99676c71c85bd08962b68629564908 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 15 Jan 2012 23:28:10 -0800 Subject: docs(*): various doc fixes --- src/service/resource.js | 7 ++----- src/service/scope.js | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/service') 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.=} 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
-           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;
 
-- 
cgit v1.2.3