Remove many eager-publish services, lazy polling

- Browser now starts the poller on first call to addPollFn()

- Many services ($location, $cookies, $router) are no longer eager-publish. The result is that
  unless someone needs the $cookies, they will not cause the Browser to start polling for them.
This commit is contained in:
Misko Hevery
2010-12-08 16:52:08 -08:00
committed by Igor Minar
parent 5f080193cb
commit d0270d9256
7 changed files with 28 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ describe('example.personalLog.LogCtrl', function() {
function createNotesCtrl() {
var scope = angular.scope();
var inject = scope.$inject;
scope.$cookies = inject('$cookies');
return scope.$new(example.personalLog.LogCtrl);
}