Injecting $window inside controllers, directives and services.