Using inline array notation for DI

This is contrary to the previous implicit dependency on $window, which would cause errors when EG. trying to minify the directive. See the documentation for more information [1].

[1] https://docs.angularjs.org/guide/di