mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
refactor(injector): $injector is no longer a function.
- $injector('abc') -> $injector.get('abc');
- $injector(fn) -> $injector.invoke(null, fn);
This commit is contained in:
@@ -31,8 +31,8 @@ beforeEach(function() {
|
||||
|
||||
afterEach(function() {
|
||||
if (this.$injector) {
|
||||
var $rootScope = this.$injector('$rootScope');
|
||||
var $log = this.$injector('$log');
|
||||
var $rootScope = this.$injector.get('$rootScope');
|
||||
var $log = this.$injector.get('$log');
|
||||
// release the injector
|
||||
dealoc($rootScope);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user