I want to add $ httpBackend and ngmocke2e as a dependency, but inside the launch function
angular.module('myApp', [ 'myApp.Group', 'ngRoute'])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
redirectTo: '/auth/login'
});
})
.run(function ($rootScope, $window, $location, Environment) {
if(localhost) {
mockRoutes($httpBackend);
}
});
source
share