I need to inject the $route variable into the factory below in order to get the GET request to refresh. How would I inject it into the factory below?
.factory('posts', ['$http', function($http){
//other factory functions
o.factorySubmit = function() {
$http.get('http://localhost:8080/clients').then(function(){
$route.refresh();
});
};
return o;
}])
['$http', '$route', function($http, $route){the application stops working