Resolving issue when minifying javascript, properly injecting angular dependencies