Make use of DI for angularjs

This is needed for javascript compression