0

I want to reload page after update, so $location.path('route'); doesn't work. I have found, that $route.reload(); might work, but not in MEAN.js, because an application throws following error:

Error: $injector:unpr Unknown provider: $routeProvider <- $route

I think, it's because of absence ngRoute in MEAN.js, because it uses ui-router ... so how can I reaload a page? ('$route' dependency was added to controller of course)

ketysek
  • 1,159
  • 1
  • 16
  • 46
  • You need to use $state with ui.router, see this question http://stackoverflow.com/questions/19583170/route-reload-does-not-work-with-ui-router – Neil Apr 11 '15 at 21:55
  • 1
    thanks, this navigated me to solution: `$state.go('.', {param: $param}, {reload: true});` – ketysek Apr 11 '15 at 22:32

0 Answers0