Angular service to register events on window resize (using Transition Event)