mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
del($eager): removed the support for $eager services
This commit is contained in:
@@ -389,18 +389,6 @@ describe('angular', function() {
|
||||
})('svc2')).toEqual('svc2-svc1');
|
||||
});
|
||||
|
||||
it('should eagerly instantiate a service if $eager is true', function() {
|
||||
var log = [];
|
||||
angular.injector(function($provide){
|
||||
$provide.service('svc1', function() {
|
||||
this.$get = function(){
|
||||
log.push('svc1');
|
||||
}
|
||||
this.$eager = true;
|
||||
});
|
||||
});
|
||||
expect(log).toEqual(['svc1']);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user