From d648d709f3edcac56132e9e2a84a0fc65f5b48ac Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 12 Jan 2012 11:06:10 -0800 Subject: refactor(module): strict separation between module-config / app-runtime --- src/service/scope.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/service/scope.js') diff --git a/src/service/scope.js b/src/service/scope.js index 2836b42e..a19bf83e 100644 --- a/src/service/scope.js +++ b/src/service/scope.js @@ -50,7 +50,7 @@ function $RootScopeProvider(){ * * Here is a simple scope snippet to show how you can interact with the scope. *
-        angular.injector(function($rootScope) {
+        angular.injector(['ng']).invoke(function($rootScope) {
            var scope = $rootScope.$new();
            scope.salutation = 'Hello';
            scope.name = 'World';
@@ -168,7 +168,7 @@ function $RootScopeProvider(){
           for(var key in ClassPrototype) {
             child[key] = bind(child, ClassPrototype[key]);
           }
-          $injector.invoke(child, Class, curryArguments);
+          $injector.invoke(Class, child, curryArguments);
         }
         return child;
       },
-- 
cgit v1.2.3