Hey Guys,
Just following up on this thread.
Did you wind up getting rid of $eager?
We're about to need it for a KeyService.
We'd like to track DOM key events on the $document element, but then emit them something like the following pseudocode:
$window.document.addEventListener('keyup', function(domEvent) {
var activeElement = $window.document.activeElement;
var currentScope = activeElement ? angular.element(activeElement).scope() : $route.current.scope;
currentScope.$emit(domEvent.name, domEvent);
});
This will give our controllers and other nested scopes the ability to handle key events and consider cancelling them if necessary.
But we'd rather not just inject this service into some arbitrary feature in order to instantiate it.
Please let us know.
Thanks,
Luke Bayes