diff options
| author | Misko Hevery | 2012-01-12 11:06:10 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2012-01-12 13:40:07 -0800 | 
| commit | d648d709f3edcac56132e9e2a84a0fc65f5b48ac (patch) | |
| tree | ac0ba5763838a4f4b880dc72f0cbcedc1b7abc05 /src/service/scope.js | |
| parent | 9a8dbfef5151e8e92dc010a597b670e7687ebe9b (diff) | |
| download | angular.js-d648d709f3edcac56132e9e2a84a0fc65f5b48ac.tar.bz2 | |
refactor(module): strict separation between module-config / app-runtime
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;        }, | 
