diff options
Diffstat (limited to 'src/service/scope.js')
| -rw-r--r-- | src/service/scope.js | 4 |
1 files changed, 2 insertions, 2 deletions
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. * <pre> - 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; }, |
