del($eager): removed the support for $eager services

This commit is contained in:
Misko Hevery
2011-11-12 14:57:43 -08:00
parent acbd7cdf32
commit 8d6dc0b9a7
7 changed files with 39 additions and 96 deletions

View File

@@ -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']);
});
});