removed $routeParams dependency.